metrics icon indicating copy to clipboard operation
metrics copied to clipboard

fix:: replace scipy.misc with imageio and skimage

Open brendalf opened this issue 3 years ago • 3 comments

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.

brendalf avatar Jan 24 '21 03:01 brendalf

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))

ludgerpaehler avatar Mar 01 '21 21:03 ludgerpaehler

Done. Thank you, @ludgerpaehler

brendalf avatar Mar 02 '21 00:03 brendalf

Any news here? @lzhbrian

brendalf avatar Aug 06 '22 07:08 brendalf