Skip to content

Repository files navigation

ONNX tutorials

Open Neural Network Exchange (ONNX) is an open standard format of machine learning models to offer interoperability between various AI frameworks. With ONNX, AI develpers could choose the best framework for training and switch to different one for shipping.

ONNX is supported by a community of partners, and more and more AI frameworks are buiding ONNX support including PyTorch, Caffe2, Microsoft Cognitive Toolkit and Apache MXNet.

Getting ONNX models

  • Choose a pre-trained ONNX model from the ONNX Model Zoo. A lot of pre-trained ONNX models are provided for common scenarios.
  • Convert models from mainstream frameworks. More tutorials are below.
Framework / toolInstallationExporting to ONNX (frontend)Importing ONNX models (backend)
Caffe2part of caffe2 packageExportingImporting
PyTorchpart of pytorch packageExporting, Extending supportcoming soon
Cognitive Toolkit (CNTK)built-inExportingImporting
Apache MXNetpart of mxnet package docsgithubExportingImporting
Chainerchainer/onnx-chainerExportingcoming soon
TensorFlowonnx/onnx-tensorflow and onnx/tensorflow-onnxExportingImporting [experimental]
Apple CoreMLonnx/onnx-coreml and onnx/onnxmltoolsExportingImporting
SciKit-Learnonnx/onnxmltoolsExportingn/a
ML.NETbuilt-inExportingImporting
Menohpfnet-research/menohn/aImporting
MATLABonnx converter on matlab central file exchangeExportingImporting
TensorRTonnx/onnx-tensorrtn/aImporting

End-to-end tutorials

ONNX tools

Contributing

We welcome improvements to the convertor tools and contributions of new ONNX bindings. Check out contributor guide to get started.

Use ONNX for something cool? Send the tutorial to this repo by submitting a PR.

About

Tutorials for using ONNX

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages