报错
报错 module 'scipy.misc' has no attribute 'imread'
和 module 'scipy.misc' has no attribute 'imread'
是scipy
版本太高的原因。scipy=1.2.1
可以使用久的接口,或者不更换版本,使用新接口。入下:
DeprecationWarning: `imresize` is deprecated!
`imresize` is deprecated in SciPy 1.0.0, and will be removed in 1.3.0.
Use Pillow instead: ``numpy.array(Image.fromarray(arr).resize())``.
DeprecationWarning: `imread` is deprecated!
`imread` is deprecated in SciPy 1.0.0, and will be removed in 1.2.0.
Use ``imageio.imread`` instead.