Forum Discussion
Consume Azure Custom Vision ONNX Models with ML.NET
Azure Custom Vision is an image recognition service that lets you build, deploy, and improve your own computer vision models. Custom Vision allows you to specify your own labels and train custom machine models using your data. Custom Vision supports training models for the following tasks:
Once you've trained a model, Custom Vision provides you with a variety of formats to export and deploy your model to.
Custom Vision Export Menu
One of those formats is the Open Neural Network Exchange (ONNX).
ONNX is an open-source format to represent AI models. ONNX models can be used to make predictions with the help of the ONNX Runtime (ORT). The ORT is a runtime for ONNX models which provides an interface for accelerating the consumption / inferencing of machine learning models, integrating with hardware-specific libraries, and sharing models across programming languages and frameworks like PyTorch, Tensorflow / Keras, scikit-learn, Windows ML, ML.NET, and others.
ML.NET is an open-source, cross-platform machine learning framework for .NET developers. ML.NET provides a set of APIs that build on the ONNX Runtime. That means you can take models you've exported from Custom Vision and use them inside your .NET applications.
Get started with Custom Vision and ML.NET
To get started using Custom Vision models with ML.NET
- Train an image classification or object detection model.
- Export your model to ONNX
- Use and reference these sample applications which show how to build an ML.NET pipeline that consumes a Custom Vision ONNX model.