Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

请问好像Python3.8.6运行有问题还是其它问题? #7

Open
13501714030 opened this issue Apr 17, 2022 · 2 comments
Open

请问好像Python3.8.6运行有问题还是其它问题? #7

13501714030 opened this issue Apr 17, 2022 · 2 comments

Comments

@13501714030
Copy link

[ERROR:[email protected]] global D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\onnx\onnx_importer.cpp (909) cv::dnn::dnn4_v20211220::ONNXImporter::handleNode DNN/ONNX: ERROR during processing node with 3 inputs and 1 o
utputs: [Clip]:(598) from domain='ai.onnx'
Traceback (most recent call last):
File "e:/MachineVision/OpenCV/_Python/YOLOP-opencv-dnn-traffic/main.py", line 152, in
yolonet = yolop(confThreshold=args.confThreshold, nmsThreshold=args.nmsThreshold, objThreshold=args.objThreshold)
File "e:/MachineVision/OpenCV/_Python/YOLOP-opencv-dnn-traffic/main.py", line 21, in init
self.net = cv2.dnn.readNet(Path+'yolop.onnx')
cv2.error: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\onnx\onnx_importer.cpp:928: error: (-2:Unspecified error) in function 'cv::dnn::dnn4_v20211220::ONNXImporter::handleNode'

Node [[email protected]]:(598) parse error: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\onnx\onnx_importer.cpp:1613: error: (-2:Unspecified error) in function 'void __cdecl cv::dnn::dnn4_v2021122
0::ONNXImporter::parseClip(class cv::dnn::dnn4_v20211220::LayerParams &,const class opencv_onnx::NodeProto &)'

(expected: 'node_proto.input_size() == 1'), where
'node_proto.input_size()' is 3
must be equal to
'1' is 1

@Rachel-liuqr
Copy link

我使用的opencv4.5.5 C++版本也遇到这个问题,不知道你解决了吗

@hs7251912
Copy link

报错的原因:是opencv不能加载yolop模型中的Focus模块,
修改方法:按照blog中的方法修改就行:https://blog.csdn.net/nihate/article/details/112731327

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

No branches or pull requests

3 participants