Skip to content

Commit

Permalink
#11
Browse files Browse the repository at this point in the history
  • Loading branch information
ildoonet committed Jan 29, 2020
1 parent 09c0799 commit 48b8f50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RandAugment/augmentations.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def SolarizeAdd(img, addition=0, threshold=128):


def Posterize(img, v): # [4, 8]
v = int(v) + 1
v = int(v)
v = max(1, v)
return PIL.ImageOps.posterize(img, v)


Expand Down

0 comments on commit 48b8f50

Please sign in to comment.