Skip to content

Commit 2489c1d

Browse files
authored
Replaced [x] with [image] for transform function
Silly mistake!
1 parent 62ce8ac commit 2489c1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def transform(image, input_height, input_width,
101101
image, input_height, input_width,
102102
resize_height, resize_width)
103103
else:
104-
im = Image.fromarray(x[j:j+crop_h, i:i+crop_w])
104+
im = Image.fromarray(image[j:j+crop_h, i:i+crop_w])
105105
return np.array(im.resize([resize_h, resize_w]), PIL.Image.BILINEAR)/127.5 - 1.
106106

107107
def inverse_transform(images):

0 commit comments

Comments
 (0)