We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09c0799 commit 48b8f50Copy full SHA for 48b8f50
1 file changed
RandAugment/augmentations.py
@@ -90,7 +90,8 @@ def SolarizeAdd(img, addition=0, threshold=128):
90
91
92
def Posterize(img, v): # [4, 8]
93
- v = int(v) + 1
+ v = int(v)
94
+ v = max(1, v)
95
return PIL.ImageOps.posterize(img, v)
96
97
0 commit comments