Skip to content

Commit 9a218f9

Browse files
committed
update illumination
1 parent 7be5de6 commit 9a218f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorlayer/prepro.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ def illumination(x, gamma=1., contrast=1., saturation=1., is_random=False):
906906

907907
if is_random:
908908
try:
909-
assert len(gamma) = len(contrast) == len(saturation), "if is_random = True, the arguments are (min, max)"
909+
assert len(gamma) == len(contrast) == len(saturation) == 2, "if is_random = True, the arguments are (min, max)"
910910
except:
911911
raise Exception("if is_random = True, the arguments are (min, max)")
912912
## random change brightness # small --> brighter

0 commit comments

Comments
 (0)