Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save saimadhu-polamuri/d777b90af02d3631dcb6b554981c8902 to your computer and use it in GitHub Desktop.
Save saimadhu-polamuri/d777b90af02d3631dcb6b554981c8902 to your computer and use it in GitHub Desktop.
## Data augmentation code
from keras.preprocessing.image import ImageDataGenerator
aug = ImageDataGenerator(
rotation_range=20,
zoom_range=0.15,
width_shift_range=0.2,
height_shift_range=0.2,
shear_range=0.15,
horizontal_flip=True,
fill_mode="nearest")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment