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

[BUG] [ShapeInferenceError] Incompatible dimensions #142

Closed
stevenwudi opened this issue May 5, 2021 · 2 comments
Closed

[BUG] [ShapeInferenceError] Incompatible dimensions #142

stevenwudi opened this issue May 5, 2021 · 2 comments

Comments

@stevenwudi
Copy link

stevenwudi commented May 5, 2021

Describe the bug

When I tried to convert the model of YOLOV5S, there is a bug:

sess = C.InferenceSession(session_options, self._model_bytes, False, self._read_config_from_model)
onnxruntime.capi.onnxruntime_pybind11_state.Fail: [ONNXRuntimeError] : 1 : FAIL : Node (Mul_959) Op (Mul) [ShapeInferenceError] Incompatible dimensions

onnx.version
'1.9.0'
onnxsim.version
'0.3.5'
torch.version
'1.8.1+cu111'

Model

The model is from pytorch model from the official yolov5 model:
https://github.com/ultralytics/yolov5/releases

Looking forward to hear back!

@stevenwudi stevenwudi changed the title [BUG] [BUG] [ShapeInferenceError] Incompatible dimensions May 5, 2021
@stevenwudi
Copy link
Author

This problem is raised in the issue in yolov5 and solve in PR# 2982
ultralytics/yolov5#2558
PR:
ultralytics/yolov5#2982

@daquexian
Copy link
Owner

Great! :)

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

2 participants