metrics
metrics copied to clipboard
fix:: replace scipy.misc with imageio and skimage
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.
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))
Done. Thank you, @ludgerpaehler
Any news here? @lzhbrian