Skip to content
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

Open
XinnWang opened this issue Dec 2, 2022 · 1 comment
Open

Opencv dnn onnx_importer.cpp failed #4

XinnWang opened this issue Dec 2, 2022 · 1 comment

Comments

@XinnWang
Copy link

XinnWang commented Dec 2, 2022

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.

@hpc203
Copy link
Owner

hpc203 commented Dec 4, 2022 via email

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

2 participants