-
Notifications
You must be signed in to change notification settings - Fork 8
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
Opencv dnn onnx_importer.cpp failed #4
Comments
您的opencv版本是4.4的,需要升级opencv
…---Original---
From: ***@***.***>
Date: Fri, Dec 2, 2022 17:43 PM
To: ***@***.***>;
Cc: ***@***.***>;
Subject: [hpc203/yolopv2-opencv-onnxrun-cpp-py] Opencv dnn onnx_importer.cppfailed (Issue #4)
Thanks for the sharing. I tried the opencv code to import onnx/yolopv2_480x640.onnx but failed. My terminal output is
terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.4.0) /tmp/third_party/opencv-4.4.0/modules/dnn/src/onnx/onnx_importer.cpp:1410: error: (-2:Unspecified error) in function 'void cv::dnn::dnn4_v20200609::ONNXImporter::populateNet(cv::dnn::dnn4_v20200609::Net)' > (expected: 'shapes.depth() == CV_32S'), where > 'shapes.depth()' is 5 (CV_32FC1) > must be equal to > 'CV_32S' is 4 (CV_32SC1) Aborted (core dumped)
Have you met this before? How can i fix this? Thanks.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the sharing. I tried the opencv code to import onnx/yolopv2_480x640.onnx but failed. My terminal output is
Have you met this before? How can i fix this? Thanks.
The text was updated successfully, but these errors were encountered: