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

Convert onnx model err #9

Closed
nullian opened this issue May 7, 2019 · 4 comments
Closed

Convert onnx model err #9

nullian opened this issue May 7, 2019 · 4 comments

Comments

@nullian
Copy link

nullian commented May 7, 2019

I hava compiled the mnn converter successful. When i convert a onnx model to mnn use :

./MNNConvert -f ONNX --modelFile mobilefacenet.onnx --MNNModel mobilefacenet.mnn --bizCode MNN

and i face this error:
MNNConverter Version: 0.0.0.1 - MNN @ 2018

Start to Convert Other Model Format To MNN Model...
[09:36:17] /home/yuanhao/osc/MNN/tools/converter/source/onnx/onnxConverter.cpp:29: ONNX Model ir version: 3
terminate called after throwing an instance of 'Error'
what(): [09:36:17] /home/yuanhao/osc/MNN/tools/converter/source/onnx/onnxConverter.cpp:83: Check failed: opConverter ==> MNN Converter NOT_SUPPORTED_OP: [ PRelu ]
Aborted (core dumped)

How can i solve this problem, thanks!

@czy2014hust
Copy link
Collaborator

OK, get it. NOW not support for converting Prelu in ONNX model,will be added later! (Appreciate that You contribute to this work 😊)

@do-van-long
Copy link

I hava compiled the mnn converter successful. When i convert a onnx model to mnn use :

./MNNConvert -f ONNX --modelFile mobilefacenet.onnx --MNNModel mobilefacenet.mnn --bizCode MNN

and i face this error:
MNNConverter Version: 0.0.0.1 - MNN @ 2018

Start to Convert Other Model Format To MNN Model...
[09:36:17] /home/yuanhao/osc/MNN/tools/converter/source/onnx/onnxConverter.cpp:29: ONNX Model ir version: 3
terminate called after throwing an instance of 'Error'
what(): [09:36:17] /home/yuanhao/osc/MNN/tools/converter/source/onnx/onnxConverter.cpp:83: Check failed: opConverter ==> MNN Converter NOT_SUPPORTED_OP: [ PRelu ]
Aborted (core dumped)

How can i solve this problem, thanks!

Hi @nullian ,
How (or where) did you get mobilefacenet.onnx model. I have tried to convert original MXNET models (from insightface) to ONNX models but not successful.
Could you please send me your mobilefacenet.onnx model?
Many thanks.

@lucasjinreal
Copy link

Hi, may I ask how does the Conv op converter registered? Since the Convolution only supported caffe and Tensorflow.

image

how does onnx conv parsed?

@lvZic
Copy link

lvZic commented Oct 8, 2022

PRELU OP not supported when cvting from TFLITE model

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

5 participants