Closed hamzag95 closed 4 years ago
Hey,
Thanks for the PR but there is no reason to resize twice, preprocess_image() already has the optional argument resize_im=True, so it will enter line 157 anyway. Can you remove line 233 and line 156 in the updated code?
Resolved with 8ff81bf47b897cb714839245301c207c1d13c24c.
Resized original image, and added new code for resizing prep image. I was trying to use other images from the ImageNet train set, and was getting errors regarding size. These two lines seemed to resolve them.
It looks like previously the resizing was being done and preserving the aspect ratio. So W or H would be 224 but the other spatial dimension would be smaller.