Skip to content

Commit 14cbeff

Browse files
authored
Update how-to-auto-train-image-models.md
1 parent b9df5f0 commit 14cbeff

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

articles/machine-learning/how-to-auto-train-image-models.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -533,12 +533,12 @@ In general, deep learning model performance can often improve with more data. Da
533533
|Object detection, instance segmentation| Training <br><br> Validation & Test |Random crop around bounding boxes, expand, horizontal flip, normalization, resize <br><br><br>Normalization, resize
534534
|Object detection using yolov5| Training <br><br> Validation & Test |Mosaic, random affine (rotation, translation, scale, shear), horizontal flip <br><br><br> Letterbox resizing|
535535

536-
Currently the augmentations defined above are applied by default for an Automated ML job. To facilitate a better control over the augmentations, Automated ML expose flags to turn-off certain train time augmentations. Currently, these flags are only supported for object detection and instance segmentation tasks. We expose following two flags to turn-off the augmentations.
536+
Currently the augmentations defined above are applied by default for an Automated ML job. To provide control over augmentations, Automated ML expose flags to turn-off certain augmentations. Currently, these flags are only supported for object detection and instance segmentation tasks. We expose following two flags to turn-off the augmentations.
537537
1. **apply_mosaic_for_yolo:** This flag is only specific to Yolo model and turns off the mosaic data augmentation which is applied at the train time.
538538
2. **apply_automl_train_augmentations:** This flag turns off the augmentation applied at the train time to the object detection and instance segmentation models. For augmentations, please see the details in the table above. Please note that for non-yolo object detection model and instance segmentation model, this flag turns off only first three augmentations i.e. *Random crop around bounding boxes, expand, horizontal flip*. The normalization and resize augmentation is still applied regardless of this flag.
539-
For Yolo model, this flag turns off the random affine and horizontal flg augmentation.
539+
For Yolo model, this flag turns off the random affine and horizontal flip augmentation.
540540

541-
These two flags are supported via *advanced_settings* under *training_parameters* and can be controlled in the following way.
541+
These two flags are supported via *advanced_settings* under *training_parameters* and can be controlled in the following way.
542542
# [Azure CLI](#tab/cli)
543543

544544
[!INCLUDE [cli v2](../../includes/machine-learning-cli-v2.md)]
@@ -559,6 +559,7 @@ training_parameters:
559559
advanced_settings: >
560560
{"apply_automl_train_augmentations": false, "apply_mosaic_for_yolo": false}
561561
```
562+
In our experiments, we find that these augmentations help the model to generalize better; therefore, when these augmentations are switched off, we recommend the users to combine them with other offline augmentations to get better results.
562563
## Incremental training (optional)
563564

564565
Once the training run is done, you have the option to further train the model by loading the trained model checkpoint. You can either use the same dataset or a different one for incremental training.

0 commit comments

Comments
 (0)