hpc203 / nanodet-opncv-dnn-cpp-python

用opencv部署nanodet目标检测,包含C++和Python两种版本程序的实现
101 stars 31 forks source link

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

Open zhanght021 opened 3 years ago

zhanght021 commented 3 years ago

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 commented 3 years ago

closed

czq454507269 commented 3 years ago

closed how to solve

hpc203 commented 3 years ago

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 commented 3 years ago

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

xxx103 commented 1 month ago

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

xxx103 commented 1 month ago

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