DualGAN icon indicating copy to clipboard operation
DualGAN copied to clipboard

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

Open JingangLang opened this issue 7 years ago • 1 comments

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.

JingangLang avatar Jan 08 '18 11:01 JingangLang

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

duxingren14 avatar Mar 19 '20 18:03 duxingren14