|
| 1 | +--- |
| 2 | +title: "Select a domain for a Custom Vision project - Computer Vision" |
| 3 | +titleSuffix: Azure Cognitive Services |
| 4 | +description: This article will show you how to select a domain for your project in the Custom Vision Service. |
| 5 | +services: cognitive-services |
| 6 | +author: shonohs |
| 7 | +manager: nitinme |
| 8 | +ms.service: cognitive-services |
| 9 | +ms.subservice: custom-vision |
| 10 | +ms.topic: conceptual |
| 11 | +ms.date: 03/06/2020 |
| 12 | +ms.author: shono |
| 13 | +--- |
| 14 | + |
| 15 | +# Select a domain for a Custom Vision project |
| 16 | + |
| 17 | +From the settings blade for your Custom Vision project, you can select a domain for your project. Choose the domain that is closest to your scenario. |
| 18 | + |
| 19 | +## Image Classification |
| 20 | + |
| 21 | +|Domain|Purpose| |
| 22 | +|---|---| |
| 23 | +|__Generic__| Optimized for a broad range of image classification tasks. If none of the other domains are appropriate, or you're unsure of which domain to choose, select the Generic domain.| |
| 24 | +|__Food__|Optimized for photographs of dishes as you would see them on a restaurant menu. If you want to classify photographs of individual fruits or vegetables, use the Food domain.| |
| 25 | +|__Landmarks__|Optimized for recognizable landmarks, both natural and artificial. This domain works best when the landmark is clearly visible in the photograph. This domain works even if the landmark is slightly obstructed by people in front of it.| |
| 26 | +|__Retail__|Optimized for images that are found in a shopping catalog or shopping website. If you want high precision classifying between dresses, pants, and shirts, use this domain.| |
| 27 | +|__Compact domains__| Optimized for the constraints of real-time classification on edge devices.| |
| 28 | + |
| 29 | +## Object Detection |
| 30 | + |
| 31 | +|Domain|Purpose| |
| 32 | +|---|---| |
| 33 | +|__General__| Optimized for a broad range of object detection tasks. If none of the other domains are appropriate, or you are unsure of which domain to choose, select the Generic domain.| |
| 34 | +|__Logo__|Optimized for finding brand logos in images.| |
| 35 | +|__Products on shelves__|Optimized for detecting and classifying products on shelves.| |
| 36 | +|__Compact domains__| Optimized for the constraints of real-time object detection on edge devices.| |
| 37 | + |
| 38 | +## Compact domains |
| 39 | + |
| 40 | +The models generated by compact domains can be exported to run locally. Model performance varies by selected domain. In the table below, we report the model size and inference time on Intel Desktop CPU and NVidia GPU \[1\]. |
| 41 | + |
| 42 | +> [!NOTE] |
| 43 | +> These numbers don't include preprocessing and postprocessing time. |
| 44 | +
|
| 45 | +|Task|Domain|Model Size|CPU inference time|GPU inference time| |
| 46 | +|---|---|---|---|---| |
| 47 | +|Classification|General (compact)|5 MB|13 ms|5 ms| |
| 48 | +|Object Detection|General (compact)|45 MB|35 ms|5 ms| |
| 49 | +|Object Detection|General (compact) [S1]|14 MB|27 ms|7 ms| |
| 50 | + |
| 51 | +## VAIDK (Vision AI Dev Kit) |
| 52 | + |
| 53 | +When a compact domain is selected an extra option "Export Capabilities" is provided allowing for distinguishing between "Basic Platforms" and "Vision AI Dev Kit". |
| 54 | + |
| 55 | +Under _Export Capabilities_ the two options are: |
| 56 | + |
| 57 | +- Basic platforms (Tensorflow, CoreML, ONNX, etc.) |
| 58 | +- Vision AI Dev Kit. |
| 59 | + |
| 60 | +When _Vision AI Dev Kit_ is selected the _Generic_, _Landmarks_, and _Retail_ but not the _Food_ compact domains are available for Image Classification while both _General (compact)_ and _General (compact) [S1]_ are available for object detection. |
| 61 | + |
| 62 | +>[!NOTE] |
| 63 | +>__General (compact)__ domain for Object Detection requires special postprocessing logic. For the detail, please see an example script in the exported zip package. If you need a model without the postprocessing logic, use __General (compact) [S1]__. |
| 64 | +
|
| 65 | +>[!IMPORTANT] |
| 66 | +>There is no guarantee that the exported models give the exactly same result as the prediction API on the cloud. Slight difference in the running platform or the preprocessing implementation can cause larger difference in the model outputs. For the detail of the preprocessing logic, please see [this document](python-tutorial.md). |
| 67 | +
|
| 68 | +\[1\] Intel Xeon E5-2690 CPU and NVIDIA Tesla M60 |
0 commit comments