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

Bug when training with celebA:UnboundLocalError: local variable 'im' referenced before assignment #365

Open
xuxiangsun opened this issue Sep 22, 2019 · 2 comments

Comments

@xuxiangsun
Copy link

Hey guys, i was stuck in such bug :"UnboundLocalError: local variable 'im' referenced before assignment" when i train the code with celebA. Need Help!

@xuxiangsun
Copy link
Author

@carpedm20 Sir, i find that your code may not define 'im' in transform and center_crop function of utils.py. Can you help me?

@koujiaodong
Copy link

In utils.py 105:return np.array(im.resize([resize_h, resize_w]), PIL.Image.BILINEAR)/127.5 - 1.
Change to:cropped_image/127.5 - 1.

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