Command‘pip install ‘onnxruntime==1.10.0‘‘ returned non-zero exit status 1.

1.raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command'pip install 'onnxruntime==1.10.0'' returned non-zero exit status 1.

找到subprocess.py文件  ,将check=True改为 check=False

成功解决subprocess.CalledProcessError: Command ‘[‘git‘, ‘describe‘]‘ returned non-zero exit status 128._subprocess.calledprocesserror: command 'git descri-CSDN博客

接着遇到:

2.UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb2 in position 6: invalid start byte

在提示报错的torch_utils.py文件58行,将原来的decode()改成decode(encoding = ‘gbk’)

YOLOv5——报错解决:UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xb2 in position 6:invalidstartbyte_William.csj的博客-CSDN博客

3.KeyError: 'nc'

待解决

4.RuntimeError: result type Float can't be cast to the desired output type __int64

204行添加.long()

5.img_id = int(osp.splitext(osp.split(path)[-1])[0]) if path else si

ValueError: invalid literal for int() with base 10: '

文件路径'/'改为'\\'

报错ValueError: invalid literal for int() with base 10-CSDN博客

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值