You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-13Lines changed: 22 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,6 @@
1
-
# [ONNX](https://github.com/onnx/onnx)tutorials
1
+
# [ONNX](https://github.com/onnx/onnx)Tutorials
2
2
3
-
[Open Neural Network Exchange (ONNX)](http://onnx.ai/) is an open standard format for representing machine learning models offering interoperability between various AI frameworks. With ONNX, AI developers can choose the best framework for training and switch to a different one for shipping.
4
-
5
-
ONNX is supported by [a community of partners](https://onnx.ai/supported-tools), and more and more AI frameworks are building ONNX support including PyTorch, Caffe2, Microsoft Cognitive Toolkit and Apache MXNet.
3
+
[Open Neural Network Exchange (ONNX)](http://onnx.ai/) is an open standard format for representing machine learning models. ONNX is supported by [a community of partners](https://onnx.ai/supported-tools) who have implemented it in many frameworks and tools.
6
4
7
5
## Getting ONNX models
8
6
@@ -11,17 +9,21 @@ ONNX is supported by [a community of partners](https://onnx.ai/supported-tools),
|[Caffe](https://github.com/BVLC/caffe)|[apple/coremltools](https://github.com/apple/coremltools) and [onnx/onnxmltools](https://github.com/onnx/onnxmltools)|[Exporting](https://github.com/onnx/onnx-docker/blob/master/onnx-ecosystem/converter_scripts/caffe_coreml_onnx.ipynb)| n/a |
14
13
|[Caffe2](http://caffe2.ai)|[part of caffe2 package](https://github.com/pytorch/pytorch/tree/master/caffe2/python/onnx)|[Exporting](tutorials/Caffe2OnnxExport.ipynb)|[Importing](tutorials/OnnxCaffe2Import.ipynb)|
15
-
|[PyTorch](http://pytorch.org/)|[part of pytorch package](http://pytorch.org/docs/master/onnx.html)|[Exporting](tutorials/PytorchOnnxExport.ipynb), [Extending support](tutorials/PytorchAddExportSupport.md)| coming soon |
|[Apache MXNet](http://mxnet.incubator.apache.org/)| part of mxnet package [docs](http://mxnet.incubator.apache.org/api/python/contrib/onnx.html)[github](https://github.com/apache/incubator-mxnet/tree/master/python/mxnet/contrib/onnx)|[Exporting](tutorials/MXNetONNXExport.ipynb)|[Importing](tutorials/OnnxMxnetImport.ipynb)|
|[TensorFlow](https://www.tensorflow.org/)|[onnx/onnx-tensorflow](https://github.com/onnx/onnx-tensorflow) and [onnx/tensorflow-onnx](https://github.com/onnx/tensorflow-onnx)|[Exporting](tutorials/OnnxTensorflowExport.ipynb)|[Importing](tutorials/OnnxTensorflowImport.ipynb)[experimental]|
20
-
|[Apple CoreML](https://developer.apple.com/documentation/coreml)|[onnx/onnx-coreml](https://github.com/onnx/onnx-coreml) and [onnx/onnxmltools](https://github.com/onnx/onnxmltools)|[Exporting](https://github.com/onnx/onnxmltools)|[Importing](tutorials/OnnxCoremlImport.ipynb)|
|[Apple CoreML](https://developer.apple.com/documentation/coreml)|[onnx/onnx-coreml](https://github.com/onnx/onnx-coreml) and [onnx/onnxmltools](https://github.com/onnx/onnxmltools)|[Exporting](https://github.com/onnx/onnx-docker/blob/master/onnx-ecosystem/converter_scripts/coreml_onnx.ipynb)|[Importing](tutorials/OnnxCoremlImport.ipynb)|
|[MATLAB](https://www.mathworks.com/)|[onnx converter on matlab central file exchange](https://www.mathworks.com/matlabcentral/fileexchange/67296)|[Exporting](https://www.mathworks.com/help/deeplearning/ref/exportonnxnetwork.html)|[Importing](https://www.mathworks.com/help/deeplearning/ref/importonnxnetwork.html)|
|[Apache MXNet](http://mxnet.incubator.apache.org/)| part of mxnet package [docs](http://mxnet.incubator.apache.org/api/python/contrib/onnx.html)[github](https://github.com/apache/incubator-mxnet/tree/master/python/mxnet/contrib/onnx)|[Exporting](tutorials/MXNetONNXExport.ipynb)|[Importing](tutorials/OnnxMxnetImport.ipynb)|
24
+
|[PyTorch](http://pytorch.org/)|[part of pytorch package](http://pytorch.org/docs/master/onnx.html)|[Exporting](tutorials/PytorchOnnxExport.ipynb), [Extending support](tutorials/PytorchAddExportSupport.md)| coming soon |
* Use services like [Azure Custom Vision service](https://docs.microsoft.com/en-us/azure/cognitive-services/Custom-Vision-Service/custom-vision-onnx-windows-ml) that generate customized ONNX models for your data
@@ -30,28 +32,35 @@ ONNX is supported by [a community of partners](https://onnx.ai/supported-tools),
30
32
31
33
* For preparation
32
34
*[Docker image for Caffe2/PyTorch/ONNX tutorials](pytorch_caffe2_docker.md)
*[Docker image for ONNX, ONNX Runtime, and Converters](https://github.com/onnx/onnx-docker/tree/master/onnx-ecosystem)
34
36
35
37
* For serving
36
38
*[Serving ONNX models with MXNet Model Server](tutorials/ONNXMXNetServer.ipynb)
37
39
*[ONNX model hosting with AWS SageMaker and MXNet](https://github.com/awslabs/amazon-sagemaker-examples/blob/master/sagemaker-python-sdk/mxnet_onnx_eia/mxnet_onnx_eia.ipynb)
40
+
* Serving ONNX models with ONNX Runtime on Azure ML - [FER Facial Expression Recognition](https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/deployment/onnx/onnx-inference-facial-expression-recognition-deploy.ipynb), [MNIST Handwritten Digits](https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/deployment/onnx/onnx-inference-mnist-deploy.ipynb), [Resnet50 Image Classification](https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/deployment/onnx/onnx-modelzoo-aml-deploy-resnet50.ipynb)
41
+
*[Inferencing ONNX models using ONNX Runtime Python API](https://microsoft.github.io/onnxruntime/auto_examples/plot_load_and_predict.html#sphx-glr-auto-examples-plot-load-and-predict-py)
38
42
39
43
* For conversion
40
44
*[Convert a PyTorch model to Tensorflow using ONNX](tutorials/PytorchTensorflowMnist.ipynb)
41
45
46
+
For direct conversion to/from ONNX format, see the "Exporting" and "Importing" columns in the table under [Getting ONNX Models](tutorials#getting-onnx-models)
47
+
42
48
* From conversion to deployment
43
49
*[Converting SuperResolution model from PyTorch to Caffe2 with ONNX and deploying on mobile device](tutorials/PytorchCaffe2SuperResolution.ipynb)
44
50
*[Transferring SqueezeNet from PyTorch to Caffe2 with ONNX and to Android app](tutorials/PytorchCaffe2MobileSqueezeNet.ipynb)
45
51
*[Converting Style Transfer model from PyTorch to CoreML with ONNX and deploying to an iPhone](https://github.com/onnx/tutorials/tree/master/examples/CoreML/ONNXLive)
46
52
*[Serving PyTorch Models on AWS Lambda with Caffe2 & ONNX](https://machinelearnings.co/serving-pytorch-models-on-aws-lambda-with-caffe2-onnx-7b096806cfac)
47
53
*[MXNet to ONNX to ML.NET with SageMaker, ECS and ECR](https://cosminsanda.com/posts/mxnet-to-onnx-to-ml.net-with-sagemaker-ecs-and-ecr/) - external link
54
+
*[Convert CoreML YOLO model to ONNX, score with ONNX Runtime, and deploy in Azure](https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/deployment/onnx/onnx-convert-aml-deploy-tinyyolo.ipynb)
55
+
48
56
49
57
## ONNX tools
50
58
51
59
*[Verifying correctness and comparing performance](tutorials/CorrectnessVerificationAndPerformanceComparison.ipynb)
52
60
*[Visualizing an ONNX model](tutorials/VisualizingAModel.md) (useful for debugging)
53
61
*[Netron: a viewer for ONNX models](https://github.com/lutzroeder/Netron)
54
62
*[Example of operating on ONNX protobuf](https://github.com/onnx/onnx/blob/master/onnx/examples/Protobufs.ipynb)
0 commit comments