yolov5-dnn-cpp-python icon indicating copy to clipboard operation
yolov5-dnn-cpp-python copied to clipboard

cv2.error:

Open jsjs0827 opened this issue 4 years ago • 1 comments

pytorch1.7.1 cv2 4.3.0 win10 I download the yolov5s.pth then I run the convert_onnx.py,the onnx file ran normally,but in the end of convert_onnx.py dnnnet = cv2.dnn.readNet(output_onnx) failed:error: (-212:Parsing error) Input node with name 873 not found in function 'cv::dnn::Subgraph::getInputNodeId'

jsjs0827 avatar Jan 25 '21 06:01 jsjs0827

~/code/cplus/yolov5-dnn-cpp-python/build$ ./opencv_test_project Net use yolov5s terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.5.0) /home/code/opencv-4.5.0/modules/dnn/src/onnx/onnx_importer.cpp:73: error: (-5:Bad argument) Can't read ONNX file: yolov5s.onnx in function 'ONNXImporter'

zkailinzhang avatar Aug 27 '21 11:08 zkailinzhang