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

where does the 'center_crop()' in the utils.py import from? #16

Open
JingangLang opened this issue Jan 8, 2018 · 1 comment
Open

where does the 'center_crop()' in the utils.py import from? #16

JingangLang opened this issue Jan 8, 2018 · 1 comment

Comments

@JingangLang
Copy link

Firstly,thanks for your sharing! I have a problem.where does the 'center_crop()' in the utils.py import from? And it shows error marked by the red line when I open the codes in Pycharm.I also can't find something like 'import center_crop' at the top of the file.May you give me some advice? @duxingren14
the codes here:
def transform(image, npx=64, is_crop=True, resize_w=64): # npx : # of pixels width/height of image if is_crop: cropped_image = center_crop(image, npx, resize_w=resize_w) else: cropped_image = image return np.array(cropped_image)/127.5 - 1.

@duxingren14
Copy link
Owner

It is a left over. Sorry for causing the confussion. I will update the codes then.

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