Not able to use scipy.misc.imsave on Colaboratory
from scipy.misc import imsave
ImportError: cannot import name 'imsave'
Tried to install Pillow and Scipy again on Colab , but the requirements are already satisfied, so Colab does not install these packages
From documentation here , imsave is deprecated. You can use imageio.imwrite
instead.
In case you really need it, you can install an older scipy version.
!pip install -U scipy==1.2.0
Use
from keras.preprocessing.image import save_img
Instead of
from scipy.misc import imsave
imsave is deprecated! imsave is deprecated in SciPy 1.0.0, and will be removed in 1.2.0. Use imageio.imwrite instead.
this is detail .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.