02 yolov7复现遇到的问题

1.参考:https://blog.csdn.net/WhiffeYF/article/details/127583796?spm=1001.2014.3001.5502

2.下载解压后,anaconda创建新环境yolov7w,pycharm界面settings里选择yolov7w,run里面环境变量也换成 yolov7w。

3.下载权重文件yolov7x.pt:https://share.weiyun.com/wreukCC0,放到根目录下,名字改成跟程序里一样的yolov7.pt

4、安装依赖requirements.txt

pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

!!!!!!!这里发生了错误

RuntimeError: Couldn't load custom C++ ops. This can happen if your PyTorch and torchvision versions are incompatible, or if you had errors while compiling torchvision from source. For further information on the compatible versions

我的cuda=11.3,pyhon版本3.7,按官网的安装1.12的报上面的错误,改成1.11的可以了

失败
失败

 

成功的
成功

 5.运行detect.py

python detect.py --weights yolov7x.pt --conf 0.25 --img-size 640 --source inference/images/horses.jpg

结果:

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值