nanodet-opncv-dnn-cpp-python icon indicating copy to clipboard operation
nanodet-opncv-dnn-cpp-python copied to clipboard

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

Open zhanght021 opened this issue 4 years ago • 6 comments

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 avatar Jun 29 '21 02:06 zhanght021

closed

zhanght021 avatar Jun 29 '21 07:06 zhanght021

closed how to solve

czq454507269 avatar Jun 29 '21 14:06 czq454507269

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版本的多少的?

hpc203 avatar Jul 09 '21 01:07 hpc203

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

zhanght021 avatar Jul 09 '21 01:07 zhanght021