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

error: (-215:Assertion failed) inputs.size() in function 'getMemoryShapes' #19

Open
HerrAskinSM opened this issue Sep 2, 2022 · 1 comment

Comments

@HerrAskinSM
Copy link

HerrAskinSM commented Sep 2, 2022

Hello! I'm trying to run the code for c++ ./yolo_example code with yolov5s.onnx, which was converted
by the python command
export.py --weights yolov5s.pt --include onnx.
I get an error

[ERROR:0@0.054] global /home/sergey/opencv/modules/dnn/src/onnx/onnx_importer.cpp (906) handleNode DNN/ONNX: ERROR during processing node with 1 inputs and 1 outputs: [Identity]:(onnx::Reshape_475) from domain='ai.onnx'
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.5.5) /home/sergey/opencv/modules/dnn/src/onnx/onnx_importer.cpp:928: error: (-2:Unspecified error) in function 'handleNode'
Node [Identity@ai.onnx]:(onnx::Reshape_475) parse error: OpenCV(4.5.5) /home/sergey/opencv/modules/dnn/src/dnn.cpp:6017: error: (-215:Assertion failed) inputs.size() in function 'getMemoryShapes'
Aborted (core dumped)

P.S. but the native yolov5.onnx works fine.

@HerrAskinSM
Copy link
Author

I solve my issue.
ultralytics/yolov5#8744 (comment)

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

1 participant