deepsort跟踪代码调试

问题一

运行跟踪代码时,显示:

requests.exceptions.ConnectionError:
HTTPSConnectionPool(host=‘drive.google.com’, port=443): Max retries exceeded with url: /ucid=1Kkx2zW89jq_NETu4u42CFZTMVD5Hwm6e (Caused by NewConnectionError(‘<urllib3.connection.HTTPSConnection object at 0x00000188CB98FE50>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。’)):

原因:网络问题,无法连接外网链接进行下载预训练模型,打开梯子,没有的话依次安装——

pip install certifi
pip install cryptography
pip install pyOpenSSL

问题二

出现问题:

requests.exceptions.SSLError:
HTTPSConnectionPool(host=‘drive.google.com’, port=443): Max retries exceeded with url: /uc?id=1Kkx2zW89jq_NETu4u42CFZTMVD5Hwm6e (Caused by SSLError(SSLEOFError(8, ‘EOF occurred in violation of protocol (_ssl.c:1131)’)))

根据提示将download.py文件中verify=True改为verify=False,关闭自动下载预训练模型

图1

问题三

出现问题:

FileNotFoundError: [Errno 2] No such file or directory: ‘C:\Users\25327/.cache\torch\checkpoints\osnet_x0_25_imagenet.pth’
手动从Model Zoo — torchreid 1.4.0 documentation (kaiyangzhou.github.io)

根据提示下载预训练模型并将其放至出错的缺失文件位置

问题四

出现问题:

requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘drive.google.com’, port=443): Max retries exceeded with url: /uc?id=1Kkx2zW89jq_NETu4u42CFZTMVD5Hwm6e (Caused by NewConnectionError(‘<urllib3.connection.HTTPSConnection object at 0x00000188CB98FE50>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。’)):

按提示将adapters.py中下面语句注释掉

图2

成功运行

图3

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值