AttributeError: module 'scipy.misc' has no attribute 'imsave'
源代码:
def save_img(img, fname): pil_img = deprocess_image(np.copy(img)) scipy.misc.imsave(fname, pil_img)
出现的问题(版本原因):
修改代码:
#安装新版本API
pip install imageio
def save_img(img, fname): pil_img = deprocess_image(np.copy(img)) imageio.imwrite(fname, pil_img)
欢迎关注我的CSDN博客心系五道口,有问题请私信2395856915@qq.com