daquexian / onnx-simplifier

Simplify your onnx model
Apache License 2.0
3.75k stars 379 forks source link

Yolov4 CSP converting issue #151

Open suhyung-jang opened 2 years ago

suhyung-jang commented 2 years ago

I am using version '0.3.6' . When I try the "onnxsim " for converting yolov4, below log message is shown.

onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Failed to load model with error: /onnxruntime_src/onnxruntime/core/graph/model.cc:111 onnxruntime::Model::Model(onnx::ModelProto&&, const PathString&, const IOnnxRuntimeOpSchemaRegistryList*, const onnxruntime::logging::Logger&) Unknown model file format version.

image

onnx file info

Can you explain how can I fix this issue? Thank you

daquexian commented 2 years ago

could you please send the model to daquexian566@gmail.com? thanks!

suhyung-jang commented 2 years ago

I have just sent my ONNX file which I mentioned above. Thank you.

geaxgx commented 2 years ago

Hi, I am also interested in the solving of this issue. I have exactly the same problem when I create a ONNX model with onnx-graphsurgeon 0.3.11 and onnx 1.10.1. No problem if I use an older version of onnx (1.8.1).

Thank you.