Skip to content

Conversation

brendalf
Copy link
Contributor

@brendalf brendalf commented Jan 24, 2021

As stated by @ML-Chen in #2, scipy.misc.imread and scipy.misc.imresize has been deprecated and is no longer available with recent versions of scipy.

Instead, we can replace it with from PIL import Image.

Solves #2.

As state by @ML-Chen, `scipy.misc.imread` and `scipy.misc.imresize` has been deprecated and is no longer available with recent versions of scipy. 

Instead, we can replace it with `from imageio import imread` and `from skimage.transform import resize`.

This should close lzhbrian#2.
@ludgerpaehler
Copy link

If I may suggest, I would rather directly replace it with Pillow i.e.

from PIL import Image

img = Image.open(file)
img = np.array(img.resize((299, 299), resample=Image.BILINEAR))

@brendalf
Copy link
Contributor Author

brendalf commented Mar 2, 2021

Done. Thank you, @ludgerpaehler

@brendalf
Copy link
Contributor Author

brendalf commented Aug 6, 2022

Any news here? @lzhbrian

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

Successfully merging this pull request may close these issues.

2 participants