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

opencv error

Open coordxyz opened this issue 4 years ago • 1 comments

I have problem of loading onnx model by opencv. How to fix it? Thx. pytorch 1.7.1 opencv 4.3.0 Here is the detail:

python main_yolov5.py --net_type yolov5s Traceback (most recent call last): File "main_yolov5.py", line 110, in yolonet = yolov5(args.net_type, confThreshold=args.confThreshold, nmsThreshold=args.nmsThreshold, objThreshold=args.objThreshold) File "main_yolov5.py", line 21, in init self.net = cv2.dnn.readNet(yolo_type + '.onnx')

cv2.error: OpenCV(4.3.0) /io/opencv/modules/dnn/src/graph_simplifier.cpp:79: error: (-212:Parsing error) Input node with name 925 not found in function 'getInputNodeId'

coordxyz avatar Mar 18 '21 02:03 coordxyz

try opencv4.5.1

xuwei1119 avatar Mar 30 '21 01:03 xuwei1119