Skip to content

when i use cv2.dnn.readNet() to read the onnx model, i have a question #3

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
zhanght021 opened this issue Jun 29, 2021 · 6 comments

Comments

@zhanght021
Copy link

when i use cv2.dnn.readNet() to read the onnx model, i have a question
(expected: 'shapes.depth() == CV_32S') where 'shapes.depth()' is 5(CV_32FC1)
must be equal to 'CV_32S' is 4(CV_32SC1) in void_cdecl cv::dnn::dnn4_v20200609::ONNXImporter::populateNet(class cv::dnn::dnn4_v20200609::Net), file D:\opencv_test\newbuild\opencv-master\modules\dnn\src\onnx\innx_importer.cpp, line 1442

@zhanght021
Copy link
Author

closed

@czq454507269
Copy link

closed
how to solve

@hpc203
Copy link
Owner

hpc203 commented Jul 9, 2021

when i use cv2.dnn.readNet() to read the onnx model, i have a question
(expected: 'shapes.depth() == CV_32S') where 'shapes.depth()' is 5(CV_32FC1)
must be equal to 'CV_32S' is 4(CV_32SC1) in void_cdecl cv::dnn::dnn4_v20200609::ONNXImporter::populateNet(class cv::dnn::dnn4_v20200609::Net), file D:\opencv_test\newbuild\opencv-master\modules\dnn\src\onnx\innx_importer.cpp, line 1442

请问你使用的opencv版本的多少的?

@zhanght021
Copy link
Author

之前具体哪个版本我忘记了,不过我把opencv升级到最新版本之后成功了 @hpc203

@xxx103
Copy link

xxx103 commented Jul 21, 2024

你好,我也遇到同样的问题了,请问你升级到的最新版本是多少呀,我用的是4.4.0版本的opencv

@xxx103
Copy link

xxx103 commented Jul 21, 2024

之前具体哪个版本我忘记了,不过我把opencv升级到最新版本之后成功了 @hpc203
你好,我也遇到同样的问题了,请问你升级到的最新版本是多少呀,我用的是4.4.0版本的opencv

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

4 participants