Skip to content

Commit c60797d

Browse files
committed
fix typo
1 parent 7552a07 commit c60797d

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
@@ -838,7 +838,7 @@ def illumination(x, gamma=1, contrast=1, saturation=1, is_random=False):
838838
image = saturation_adjust.enhance(np.random.uniform(0.7,1.0))
839839
im_ = np.array(image) # PIL -> array
840840
else:
841-
im_ = brightness(im_, gamma=gamma, gain=1, is_random=False)
841+
im_ = brightness(x, gamma=gamma, gain=1, is_random=False)
842842
image = Image.fromarray(im_) # array -> PIL
843843
contrast_adjust = ImageEnhance.Contrast(image)
844844
image = contrast_adjust.enhance(contrast)

0 commit comments

Comments
 (0)