Comments (4)
另外python版本是可以跑通的
from yolov5-v6.1-opencv-onnxrun.
onnxruntime也是,py能运行,cpp的就报错:
严重性 代码 说明 项目 文件 行 禁止显示状态 错误 LNK2019 无法解析的外部符号 OrtGetApiBase,函数 "void __cdecl
dynamic initializer for 'public: static struct OrtApi const * const Ort::Global::api_''(void)" (??_E?api@?$Global@X@Ort@@2PEBUOrtApi@@eb@@yaxxz) 中引用了该符号 opencvdnn E:\Workshop\CPP\opencvdnn\opencvdnn\opencvdnn\main.obj 1
`
onnxruntime版本win x64 1.6.0
from yolov5-v6.1-opencv-onnxrun.
环境:win10、VS2019、OpenCV4.5.4 使用提供的模型yolov5n.onnx,运行opencv下的main.cpp
报错Expression:vector subscript out of range
debug模型加载、forword都没问题。
初步判断是在detect的这两行报错,应该是网络输出结果有问题?
int num_proposal = outs[0].size[1]; int nout = outs[0].size[2];
我打印outs
cout << "outs size " << outs.size() << " " << outs[0].cols << " " << outs[0].rows << endl;
得到的结果是1 -1 -1 不知道是否正常?
不能这么打印的,为什么会出现-1,请看这篇文章里的原因分析
https://blog.csdn.net/nihate/article/details/113849665
from yolov5-v6.1-opencv-onnxrun.
OK
from yolov5-v6.1-opencv-onnxrun.
Related Issues (16)
- opencv版本问题 HOT 1
- ort_session->Run报段错误 HOT 2
- 请大佬说明下各个模块的版本
- some error HOT 8
- 运行代码还需要写cmakelists
- yolov5使用onnxruntime进行多图推理
- onnxruntime运行时报错。 HOT 1
- GPU推理
- yolov5v5推理结果解析问题请教 HOT 1
- opencv不画框 HOT 10
- 不画Bounding Box (出现负数) HOT 8
- python opencv加载onnx HOT 6
- main.cpp 进行推理闪退 HOT 2
- Yolov5 Classification
- readNet 加载onnx HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yolov5-v6.1-opencv-onnxrun.