torch安装2020.7.9

  • 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消失,但是图片依旧不对。

  • 新问题(图像复原后马赛克是绿色的)
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值