- torch安装(续)
上一篇的问题解决后开始自动下载一个路径,同样的程序自己下载极慢
如下:
D:\anaconda\envs\pytorch_envs\python.exe C:/Users/Administrator/Desktop/电赛资料/edge-connect-master1/edge-connect-master/test.py
2
[’./image\1123image.jpg’, ‘./image\damage_grey.jpg’]
Downloading: “https://download.pytorch.org/models/vgg19-dcbb9e9d.pth” to C:\Users\Administrator/.torch\models\vgg19-dcbb9e9d.pth
网页下载很慢,可以把路径复制后用迅雷下载,起码保证500k的速度,然后把软件放在对应的位置
- 新问题1
AttributeError: module ‘scipy.misc’ has no attribute ‘imresize’
尝试方法1:可能是1.5.1版本过高的原因,降低版本1.2.1
pip install scipy==1.2.1 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
问题解决
记录一下此时的版本
- 新问题2
C:\Users\Administrator\Desktop\电赛资料\edge-connect-master1\edge-connect-master\src\dataset.py:150: FutureWarning: The behavior of rgb2gray will change in scikit-image 0.19. Currently, rgb2gray allows 2D grayscale image to be passed as inputs and leaves them unmodified as outputs. Starting from version 0.19, 2D arrays will be treated as 1D images with 3 channels.
mask = rgb2gray(mask)
程序可以运行但是在results文件夹中复原出来的图片是绿色的mask。
尝试方法1
pip install scikit-image==0.15
(他会自动卸载之前安装的0.17.2最新版本)
FutureWarning消失,但是图片依旧不对。
- 新问题(图像复原后马赛克是绿色的)