May 2018
Beginner
490 pages
13h 16m
English
Data augmentation increases the size of the dataset by generating distorted versions of the images provided.
The ImageDataGenerator function generates batches of all images found in tensor formats. It will perform data augmentation by distorting the images (shear range, for example). Data augmentation is a fast way to use the images you have and create more virtual images through distortions:
train_datagen = ImageDataGenerator(rescale = 1./255,shear_range = 0.2,zoom_range = 0.2,horizontal_flip = True)
The code description is as follows:
Read now
Unlock full access