Export your model for use with mobile devices

Custom Vision Service allows classifiers to be exported to run offline. You can embed your exported classifier into an application and run it locally on a device for real-time classification.

Custom Vision Service supports the following exports:

  • Tensorflow for Android.
  • CoreML for iOS11.
  • ONNX for Windows ML.
  • A Windows or Linux container. The container includes a Tensorflow model and service code to use the Custom Vision Service API.


Custom Vision Service only exports compact domains. The models generated by compact domains are optimized for the constraints of real-time classification on mobile devices. Classifiers built with a compact domain may be slightly less accurate than a standard domain with the same amount of training data.

For information on improving your classifiers, see the Improving your classifier document.

Convert to a compact domain


The steps in this section only apply if you have an existing classifier that is not set to compact domain.

To convert the domain of an existing classifier, use the following steps:

  1. From the Custom vision page, select the Home icon to view a list of your projects. You can also use the https://customvision.ai/projects to see your projects.

    Image of the home icon and projects list

  2. Select a project, and then select the Gear icon in the upper right of the page.

    Image of the gear icon

  3. In the Domains section, select a compact domain. Select Save Changes to save the changes.

    Image of domains selection

  4. From the top of the page, select Train to retrain using the new domain.

Export your model

To export the model after retraining, use the following steps:

  1. Go to the Performance tab and select Export.

    Image of the export icon


    If the Export entry is not available, then the selected iteration does not use a compact domain. Use the Iterations section of this page to select an iteration that uses a compact domain, and then select Export.

  2. Select the export format, and then select Export to download the model.

Next steps

Integrate your exported model into an application by exploring one of the following articles or samples: