Data Augmentation

--

Augmentation can help during training process.

By this way we extend the data input for training CNN network.

augment = keras.Sequential([
preprocessing.RandomContrast(factor=0.5),
preprocessing.RandomFlip(mode=’horizontal’), # meaning, left-to-right
preprocessing.RandomFlip(mode=’vertical’), # meaning, top-to-bottom
preprocessing.RandomWidth(factor=0.15), # horizontal stretch
preprocessing.RandomRotation(factor=0.20),
preprocessing.RandomTranslation(height_factor=0.1, width_factor=0.1),
])

--

--