Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Created August 6, 2020 05:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aniruddha27/67e35f8fb338d9164f76ebcb9821bf7c to your computer and use it in GitHub Desktop.
Save aniruddha27/67e35f8fb338d9164f76ebcb9821bf7c to your computer and use it in GitHub Desktop.
# Data generator
# For train data
train_datagen = ImageDataGenerator(rescale=1.0/255,
rotation_range=10,
width_shift_range=0.2,
height_shift_range=0.2,
horizontal_flip=True,
brightness_range=[0.4,0.9],
zoom_range=0.2)
# For valid data
valid_datagen = ImageDataGenerator(rescale=1.0/ 255)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment