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

scipy.misc.imread/imresize has been depreciated #8

Open
gracequeen opened this issue Aug 1, 2019 · 1 comment
Open

scipy.misc.imread/imresize has been depreciated #8

gracequeen opened this issue Aug 1, 2019 · 1 comment

Comments

@gracequeen
Copy link

Hi.
Please be aware that imread/imresize under scipy.misc has been removed from 1.2.0/1.3.0.
.https://docs.scipy.org/doc/scipy-1.2.1/reference/generated/scipy.misc.imread.html
Thank you for the work!

@DhruvAthaide
Copy link

Yeah,
I think you can fix this issue by changing a few lines in prepare_imagenet_data.py

First change: from scipy.misc import imread, imresize
To: import imageio

Second change: img = imread(im_path, mode='RGB')
To: img = imageio.imread(im_path, mode='RGB')

Third change: img = imresize(img,img_size)
To: img = imageio.imresize(img,img_size)

This should fix the Scipy.misc Deprecation problem.
Screenshot 2023-07-22 120357

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