You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: