ermig1979 / Synet

A small framework to infer neural network
MIT License
140 stars 26 forks source link

Onnx conversion issue #28

Closed Pabur96 closed 2 years ago

Pabur96 commented 2 years ago

I try to convert my own custom onnx model but I get an error.

Convert network from Onnx to Synet : Can't found layer onnx ! Can't found layer onnx ! Can't found layer onnx ! Can't found layer onnx ! Can't convert node[4]: type: Slice, name: Slice_4 ( images onnx::Slice_127 onnx::Slice_128 onnx::Slice_126 onnx::Slice_129 ) -> ( onnx::Slice_130 ) { } !

Conversion finished with errors! Do you have any idea why I get this error and maybe how I could fix it?

ermig1979 commented 2 years ago

Hi! I need to get access to this model to fix the bug.

Pabur96 commented 2 years ago

Here is a link to my model. https://we.tl/t-LJ8fOdKYZZ Thank you

ermig1979 commented 2 years ago

I fixed bugs. The conversion of the model works now. The conversion to NCHW format works without additional parameters. The conversion to NHWC format (which is faster then NCHW) requires additional parameters (see attach).

I have some additional questions: 1) Can I add this model to public test? 2) If the first answer is positive then what this model do and how to test it.

param.zip

Pabur96 commented 2 years ago

@ermig1979 Thank you very much. I would prefer to not make it public, because it belongs to my company. I can only tell you that it's my custom yolov5s model converted to onnx.