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

How to convert tflite model to onnx model? #1

Open
xiaoxiongli opened this issue May 31, 2021 · 3 comments
Open

How to convert tflite model to onnx model? #1

xiaoxiongli opened this issue May 31, 2021 · 3 comments

Comments

@xiaoxiongli
Copy link

it is good work and congratulation!

I have to two questions that:

  1. which framwork do you use: tensorflow or tensorflow_lite?
  2. if you use tensorflow_lite, How to convert the output tflite model to onnx model?

please help... thank you very much! double click 666 ^_^

@NJU-Jet
Copy link
Owner

NJU-Jet commented May 31, 2021

Hello:)

  1. We use tensorflow during training, and after training we convert the saved model to .tflite model.
  2. I uploaded .pb file in experiment directory just now, so you can convert it to onnx model.

@simplew2011
Copy link

python -m tf2onnx.convert --saved-model experiment/base7_D4C28_bs16ps64_lr1e-3/best_status/ --output model.onnx --opset 11 --verbose --inputs-as-nchw serving_default_input_1:0

error:
image

@simplew2011
Copy link

python -m tf2onnx.convert --saved-model experiment/base7_D4C28_bs16ps64_lr1e-3/best_status/ --output model.onnx --opset 11 --verbose --inputs-as-nchw serving_default_input_1:0

error: image

change tf 2.3.1 is ok.

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

3 participants