-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C++版本检测不到物体 #13
Comments
你好,你能用c++加载模型吗?是把yolov5 6.0版本的按照他说的提取出.pth然后转换为yolov5s.onnx,最后就能调用吗?我按照这个步骤做的,但是readNetFromONNX就会报错,加载不了网络。您成功了吗?可以说下做的步骤吗? |
你是不是把onnx文件放错位置了?如果你用vs,把onnx文件和图片都放在与 ***.vcxproj相同的目录下 |
如果你用的是vs,你把coco.name放在***.vsxproj文件的目录下,保证coco.name与***vcxproj处于同一个目录下就可以了。 |
这个仓库的代码有些旧了,最近我发布了使用opencv部署yolov5-v6.1的程序,源码地址是: |
并没有欸,coco.name已经正确读取了,但是用opencv读取onnx文件就报错,我的opencv是4.1.3,但我不能更换这个版本。所以不知道问题在哪里?用python 里的opencv读取没有问题 |
你再检查一下程序。程序里的模型名字和onnx文件名是否对的上? |
C++版本的
boxes.size()是0,检测不到任何物体是怎么回事呢?
The text was updated successfully, but these errors were encountered: