Skip to content

导出ONNX的问题 #16

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

Open
Caliburne opened this issue Jul 13, 2021 · 2 comments
Open

导出ONNX的问题 #16

Caliburne opened this issue Jul 13, 2021 · 2 comments

Comments

@Caliburne
Copy link

看了您的博文,明白了要想将导出的onnx模型供cv2.dnn调用,需要改写官方源码。但作为小白,怎么改写还是不太懂。能将这个详细过程再讲一遍吗?十分感谢。

@zkailinzhang
Copy link

:~/code/cplus/yolov5-dnn-cpp-python/build$ ./opencv_test_project
Net use yolov5s
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.5.0) /home/code/opencv-4.5.0/modules/dnn/src/onnx/onnx_importer.cpp:73: error: (-5:Bad argument) Can't read ONNX file: yolov5s.onnx in function 'ONNXImporter'

@zcunyi
Copy link

zcunyi commented Dec 31, 2021

g++ main_yolo.cpp -o main -lopencv_dnn -lopencv_imgproc -lopencv_core -lopencv_imgcodecs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy