Skip to content

Commit

Permalink
quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gskesav committed Nov 27, 2018
1 parent 1dfa3d5 commit f5a0081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autokeras/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def compute_image_resize_params(data):
if data is None or len(data.shape) == 0:
return []

if len(data.shape) == len(data[0].shape) + 1:
if len(data.shape) == len(data[0].shape) + 1 and np.prod(data[0].shape[:-1]) <= Constant.MAX_IMAGE_SIZE:
return data[0].shape

data_shapes = []
Expand Down

0 comments on commit f5a0081

Please sign in to comment.