Giter Club home page Giter Club logo

Comments (4)

fire717 avatar fire717 commented on May 28, 2024

另外python版本是可以跑通的

from yolov5-v6.1-opencv-onnxrun.

fire717 avatar fire717 commented on May 28, 2024

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.

hpc203 avatar hpc203 commented on May 28, 2024

环境: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.

fire717 avatar fire717 commented on May 28, 2024

OK

from yolov5-v6.1-opencv-onnxrun.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.