Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

opencv error #1

Open
coordxyz opened this issue Mar 18, 2021 · 1 comment
Open

opencv error #1

coordxyz opened this issue Mar 18, 2021 · 1 comment

Comments

@coordxyz
Copy link

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'

@xuwei1119
Copy link

try opencv4.5.1

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants