|
1 | 1 | ---
|
2 | 2 | title: Export your model to mobile - Custom Vision Service
|
3 | 3 | titleSuffix: Azure AI services
|
4 |
| -description: This article will show you how to export your model for use in creating mobile applications or run locally for real-time classification. |
| 4 | +description: Learn how to export your model for use in creating mobile applications or to run locally for real-time classification. |
5 | 5 | #services: cognitive-services
|
6 | 6 | author: PatrickFarley
|
7 | 7 | manager: nitinme
|
8 | 8 |
|
9 | 9 | ms.service: azure-ai-custom-vision
|
10 | 10 | ms.topic: how-to
|
11 |
| -ms.date: 01/21/2024 |
| 11 | +ms.date: 11/05/2024 |
12 | 12 | ms.author: pafarley
|
13 | 13 | ---
|
14 | 14 |
|
15 | 15 | # Export your model for use with mobile devices
|
16 | 16 |
|
17 |
| -Custom Vision Service lets you export your classifiers to run offline. You can embed your exported classifier into an application and run it locally on a device for real-time classification. |
| 17 | +Azure AI Custom Vision Service lets you export your classifiers to run offline. You can embed your exported classifier into an application and run it locally on a device for real-time classification. |
18 | 18 |
|
19 | 19 | ## Export options
|
20 | 20 |
|
21 | 21 | Custom Vision Service supports the following exports:
|
22 | 22 |
|
23 |
| -* **TensorFlow** for **Android**. |
24 |
| -* **TensorFlow.js** for JavaScript frameworks like React, Angular, and Vue. This will run on both **Android** and **iOS** devices. |
25 |
| -* **CoreML** for **iOS11**. |
26 |
| -* **ONNX** for **Windows ML**, **Android**, and **iOS**. |
27 |
| -* **[Vision AI Developer Kit](https://azure.github.io/Vision-AI-DevKit-Pages/)**. |
28 |
| -* A **Docker container** for Windows, Linux, or ARM architecture. The container includes a TensorFlow model and service code to use the Custom Vision API. |
| 23 | +* **TensorFlow** for **Android** |
| 24 | +* **TensorFlow.js** for JavaScript frameworks like React, Angular, and Vue. This runs on both **Android** and **iOS** devices |
| 25 | +* **CoreML** for **iOS 11 and later** |
| 26 | +* **ONNX** for **Windows ML**, **Android**, and **iOS** |
| 27 | +* **[Vision AI Developer Kit](https://azure.github.io/Vision-AI-DevKit-Pages/)** |
| 28 | +* A **Docker container** for Windows, Linux, or ARM architecture. The container includes a TensorFlow model and service code to use the Custom Vision API |
29 | 29 |
|
30 | 30 | > [!IMPORTANT]
|
31 |
| -> Custom Vision Service only exports projects with **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. |
| 31 | +> Custom Vision Service only exports projects with *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 might be slightly less accurate than a standard domain with the same amount of training data. |
32 | 32 | >
|
33 |
| -> For information on improving your classifiers, see the [Improving your classifier](getting-started-improving-your-classifier.md) document. |
| 33 | +> For information on improving your classifiers, see [Improving your classifier](getting-started-improving-your-classifier.md). |
34 | 34 |
|
35 | 35 | ## Convert to a compact domain
|
36 | 36 |
|
37 | 37 | > [!NOTE]
|
38 |
| -> The steps in this section only apply if you have an existing model that is not set to compact domain. |
| 38 | +> The steps in this section only apply if you have an existing model that isn't set to compact domain. |
39 | 39 |
|
40 |
| -To convert the domain of an existing model, take the following steps: |
| 40 | +To convert the domain of an existing model, follow these steps: |
41 | 41 |
|
42 |
| -1. On the [Custom vision website](https://customvision.ai), select the **Home** icon to view a list of your projects. |
| 42 | +1. Go to the [Custom Vision website](https://customvision.ai), then sign in to view a list of your projects. |
43 | 43 |
|
44 |
| -  |
| 44 | + :::image type="content" source="media/export-your-model/projects-list.png" alt-text="Screenshot that shows a list of projects."::: |
45 | 45 |
|
46 | 46 | 1. Select a project, and then select the **Gear** icon in the upper right of the page.
|
47 | 47 |
|
48 |
| -  |
| 48 | + :::image type="content" source="media/export-your-model/gear-icon.png" alt-text="Screenshot that shows the gear icon."::: |
49 | 49 |
|
50 | 50 | 1. In the **Domains** section, select one of the **compact** domains. Select **Save Changes** to save the changes.
|
51 | 51 |
|
52 | 52 | > [!NOTE]
|
53 | 53 | > For Vision AI Dev Kit, the project must be created with the **General (Compact)** domain, and you must specify the **Vision AI Dev Kit** option under the **Export Capabilities** section.
|
54 | 54 |
|
55 |
| -  |
| 55 | + :::image type="content" source="media/export-your-model/domains.png" alt-text="Screenshot that shows the Domains selection."::: |
56 | 56 |
|
57 | 57 | 1. From the top of the page, select **Train** to retrain using the new domain.
|
58 | 58 |
|
59 | 59 | ## Export your model
|
60 | 60 |
|
61 | 61 | To export the model after retraining, use the following steps:
|
62 | 62 |
|
63 |
| -1. Go to the **Performance** tab and select **Export**. |
| 63 | +1. Go to the **Performance** tab and select **Export**. |
64 | 64 |
|
65 |
| -  |
| 65 | + :::image type="content" source="media/export-your-model/export.png" alt-text="Screenshot that shows the export icon."::: |
66 | 66 |
|
67 | 67 | > [!TIP]
|
68 |
| - > 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**. |
| 68 | + > If the **Export** entry isn't available, then the selected iteration doesn't use a compact domain. Use the **Iterations** section of this page to select an iteration that uses a compact domain, and then select **Export**. |
69 | 69 |
|
70 | 70 | 1. Select your desired export format, and then select **Export** to download the model.
|
71 | 71 |
|
72 |
| -## Next steps |
| 72 | +## Related content |
73 | 73 |
|
74 |
| -Integrate your exported model into an application by exploring one of the following articles or samples: |
| 74 | +To integrate your exported model into an application, explore one of the following articles or samples: |
75 | 75 |
|
76 |
| -* [Use your TensorFlow model with Python](export-model-python.md) |
| 76 | +* [Run a TensorFlow model in Python](export-model-python.md) |
77 | 77 | * [Use your ONNX model with Windows Machine Learning](custom-vision-onnx-windows-ml.md)
|
78 |
| -* See the sample for [CoreML model in an iOS application](https://go.microsoft.com/fwlink/?linkid=857726) for real-time image classification with Swift. |
79 |
| -* See the sample for [TensorFlow model in an Android application](https://github.com/Azure-Samples/cognitive-services-android-customvision-sample) for real-time image classification on Android. |
80 |
| -* See the sample for [CoreML model with Xamarin](https://github.com/xamarin/ios-samples/tree/master/ios11/CoreMLAzureModel) for real-time image classification in a Xamarin iOS app. |
| 78 | +* See the Swift sample for [CoreML model in an iOS application](https://go.microsoft.com/fwlink/?linkid=857726) |
| 79 | +* See the Android sample for [TensorFlow model in an Android app](https://github.com/Azure-Samples/cognitive-services-android-customvision-sample) |
| 80 | +* See the Xamarin iOS sample for [CoreML model with Xamarin](https://github.com/xamarin/ios-samples/tree/master/ios11/CoreMLAzureModel) |
0 commit comments