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

ONNX README #1656

Merged
merged 7 commits into from
May 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion scripts/onnx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@ Inference with ONNX model is straightforward:

### Export GluonCV Models to ONNX

For those who are interested, there are three main steps to export the model:
For those who are interested, below is a guide on how to export the model yourself:

To be notice, current released version of mxnet(1.8.0) does not support many operators. Therefore, in order to export models to onnx, you'll have to either

1. Build the newest version of mxnet from source
2. Use this [tool](https://github.com/apache/incubator-mxnet/blob/d10b76937b891964381d25ecea60e443a9876df1/tools/onnx/update_onnx.py) to add newly supported operators to your mxnet

There are three main steps to export the model:

1. Get the GluonCV model using `gluoncv.model_zoo.get_model`
2. Export the GluonCV model to get the symbol and parameter files using `export_block`
Expand Down