Using Data Augmentation

Data augmentation performs random transformations on images given to a deep learning tool .NET Python during the training.

  • Experiment different settings to choose the best parameters for your data augmentation.

  • Configure data augmentation according to your problem. However, flips, shifts (20 - 40 px), brightness (5%), contrast (0.95 to 1.05) or salt and pepper noise (2%) can be useful on many datasets.

  • Check that the transformations do not change the label of an image (for example a defect that disappears because of a rotation or a contrast change).

Warning

With EasyLocate, we do not recommend to use rotation and shear data augmentation as it is not possible to compute the minimal bounding box surrounding the object after these geometric transformations.

Deep Learning Studio

  • Create and configure the data augmentation settings in the Data augmentation tab.

  • Display and review the data augmented images with the minimum settings (Lower limits augmentation), the maximum settings (Upper limits augmentation) or the random settings (Random augmentation).

Visualization of data augmentation settings.

API

Use an EDataAugmentation .NET Python object to configure the data augmentation settings. You can give this object to the to enable or disable these transformations or directly use an object EDataAugmentation .NET Python that you give to the Train method of your tool.

Available Transformations

Geometric Transformations

../../../_images/using_data_augmentation_2.webp

Geometric transformations

Color and Luminosity Transformations

../../../_images/using_data_augmentation_3.webp

Color/Luminosity transformations

Noise Transformations

../../../_images/using_data_augmentation_4.webp

Noise transformations

Note

The standard deviation is expressed as a percentage of the maximum pixel value.