Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There are two bugs in the transform function in the utils.py #386

Open
Jiang-maomao opened this issue Sep 21, 2020 · 2 comments
Open

There are two bugs in the transform function in the utils.py #386

Jiang-maomao opened this issue Sep 21, 2020 · 2 comments

Comments

@Jiang-maomao
Copy link

def transform(image, input_height, input_width, resize_height=64, resize_width=64, crop=True):
if crop:
cropped_image = center_crop(image, input_height, input_width, resize_height, resize_width)
else:
im = Image.fromarray(image[j:j+crop_h, i:i+crop_w])
return np.array(im.resize([resize_h, resize_w]), PIL.Image.BILINEAR)/127.5 - 1.

  1. if crop,cropped_image doesn't return
  2. j,i are not defined
@panjijun123
Copy link

Yes, but how to fix it?

@Jiang-maomao
Copy link
Author

Yes, but how to fix it?

issue #366

@Jiang-maomao Jiang-maomao changed the title the transform function in the utils.py has two bugs There are two bugs in the transform function in the utils.py Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants