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: articles/machine-learning/how-to-use-automl-small-object-detect.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ In this article, you'll learn how to train an object detection model to detect s
24
24
25
25
Typically, computer vision models for object detection work well for datasets with relatively large objects. However, due to memory and computational constraints, these models tend to under-perform when tasked to detect small objects in high-resolution images. Because high-resolution images are typically large, they are resized before input into the model, which limits their capability to detect smaller objects--relative to the initial image size.
26
26
27
-
To help with this problem, automated ML supports tiling as part of the public preview computer vision capabilities. The tiling capability in automated ML is based on the concepts in [The Power of Tiling for Small Object Detection](https://openaccess.thecvf.com/content_CVPRW_2019/papers/UAVision/Unel_The_Power_of_Tiling_for_Small_Object_Detection_CVPRW_2019_paper.pdf).
27
+
To help with this problem, automated ML supports tiling as part of the computer vision capabilities. The tiling capability in automated ML is based on the concepts in [The Power of Tiling for Small Object Detection](https://openaccess.thecvf.com/content_CVPRW_2019/papers/UAVision/Unel_The_Power_of_Tiling_for_Small_Object_Detection_CVPRW_2019_paper.pdf).
28
28
29
29
When tiling, each image is divided into a grid of tiles. Adjacent tiles overlap with each other in width and height dimensions. The tiles are cropped from the original as shown in the following image.
30
30
@@ -42,32 +42,28 @@ Small object detection using tiling is supported for all models supported by Aut
42
42
43
43
## Enable tiling during training
44
44
45
-
To enable tiling, you can set the `tile_grid_size` parameter to a value like `'3x2'`; where 3 is the number of tiles along the width dimension and 2 is the number of tiles along the height dimension. When this parameter is set to `'3x2'`, each image is split into a grid of 3 x 2 tiles. Each tile overlaps with the adjacent tiles, so that any objects that fall on the tile border are included completely in one of the tiles. This overlap can be controlled by the `tile_overlap_ratio` parameter, which defaults to 25%.
45
+
To enable tiling, you can set the `tile_grid_size` parameter to a value like '3x2'; where 3 is the number of tiles along the width dimension and 2 is the number of tiles along the height dimension. When this parameter is set to '3x2', each image is split into a grid of 3 x 2 tiles. Each tile overlaps with the adjacent tiles, so that any objects that fall on the tile border are included completely in one of the tiles. This overlap can be controlled by the `tile_overlap_ratio` parameter, which defaults to 25%.
46
46
47
47
When tiling is enabled, the entire image and the tiles generated from it are passed through the model. These images and tiles are resized according to the `min_size` and `max_size` parameters before feeding to the model. The computation time increases proportionally because of processing this extra data.
48
48
49
-
For example, when the `tile_grid_size` parameter is `'3x2'`, the computation time would be approximately seven times when compared to no tiling.
49
+
For example, when the `tile_grid_size` parameter is '3x2', the computation time would be approximately seven times when compared to no tiling.
50
50
51
-
You can specify the value for `tile_grid_size` in your hyperparameter space as a string.
51
+
You can specify the value for `tile_grid_size` in your training parameters as a string.
@@ -82,15 +78,19 @@ To choose the optimal value for this parameter for your dataset, you can use hyp
82
78
83
79
```yaml
84
80
search_space:
85
-
- model_name: "fasterrcnn_resnet50_fpn"
86
-
tile_grid_size: "choice('2x1', '3x2', '5x3')"
81
+
- model_name:
82
+
type: choice
83
+
values: ['fasterrcnn_resnet50_fpn']
84
+
tile_grid_size:
85
+
type: choice
86
+
values: ['2x1', '3x2', '5x3']
87
87
```
88
88
89
89
# [Python SDK v2 (preview)](#tab/SDK-v2)
90
90
91
91
```python
92
92
image_object_detection_job.extend_search_space(
93
-
ImageObjectDetectionSearchSpace(
93
+
SearchSpace(
94
94
model_name=Choice(['fasterrcnn_resnet50_fpn']),
95
95
tile_grid_size=Choice(['2x1', '3x2', '5x3'])
96
96
)
@@ -138,4 +138,4 @@ See the [object detection sample notebook](https://github.com/Azure/azureml-exam
138
138
* For definitions and examples of the performance charts and metrics provided for each job, see [Evaluate automated machine learning experiment results](how-to-understand-automated-ml.md).
139
139
*[Tutorial: Train an object detection model (preview) with AutoML and Python](tutorial-auto-train-image-models.md).
140
140
* See [what hyperparameters are available for computer vision tasks](reference-automl-images-hyperparameters.md).
141
-
*[Make predictions with ONNX on computer vision models from AutoML](how-to-inference-onnx-automl-image-models.md)
141
+
*[Make predictions with ONNX on computer vision models from AutoML](how-to-inference-onnx-automl-image-models.md)
> This feature is currently in public preview. This preview version is provided without a service-level agreement. Certain features might not be supported or might have constrained capabilities. For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
19
26
@@ -106,4 +113,4 @@ See the [object detection sample notebook](https://github.com/Azure/azureml-exam
106
113
* For definitions and examples of the performance charts and metrics provided for each job, see [Evaluate automated machine learning experiment results](../how-to-understand-automated-ml.md).
107
114
*[Tutorial: Train an object detection model (preview) with AutoML and Python](tutorial-auto-train-image-models-v1.md).
108
115
* See [what hyperparameters are available for computer vision tasks](../reference-automl-images-hyperparameters.md).
109
-
*[Make predictions with ONNX on computer vision models from AutoML](how-to-inference-onnx-automl-image-models-v1.md)
116
+
*[Make predictions with ONNX on computer vision models from AutoML](how-to-inference-onnx-automl-image-models-v1.md)
0 commit comments