Small fix to array_to_img function
Small fix to array_to_img function, it won't change the value of x when set scale=True now.
@@ -226,7 +226,7 @@ def array_to_img(x, dim_ordering='default', scale=True):
if dim_ordering == 'th':
x = x.transpose(1, 2, 0)
if scale:
- x += max(-np.min(x), 0)
+ x = x + max(-np.min(x), 0)
x_max = np.max(x)
if x_max != 0:
x /= x_max
