Skip to content

Instantly share code, notes, and snippets.

@Shubhamai
Created April 21, 2020 07:44
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 Shubhamai/5178677e5b027f1e1939a966d1789748 to your computer and use it in GitHub Desktop.
Save Shubhamai/5178677e5b027f1e1939a966d1789748 to your computer and use it in GitHub Desktop.
datagen = keras.preprocessing.image.ImageDataGenerator(
rescale=1./255, # Rescaling Image
zca_whitening=False, # apply ZCA whitening
rotation_range=180, # randomly rotate images in the range (degrees, 0 to 180)
zoom_range = 0.15, # Randomly zoom image
width_shift_range=0.15, # randomly shift images horizontally (fraction of total width)
height_shift_range=0.15, # randomly shift images vertically (fraction of total height)
horizontal_flip=True, # randomly flip images
vertical_flip=True) # randomly flip images
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment