Created
July 13, 2021 07:57
-
-
Save AmrutaKoshe/b827efc03861f22376f7de1dc56f5008 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
train_datagen = ImageDataGenerator(vertical_flip=True, | |
horizontal_flip=True, | |
rotation_range=40, | |
width_shift_range=0.2, | |
height_shift_range=0.2, | |
zoom_range=0.1, | |
validation_split=0.2) | |
val_datagen = ImageDataGenerator() | |
train_gen = train_datagen.flow(X_train, y_train, batch_size=batch_size) | |
val_gen = val_datagen.flow(X_val, y_val, batch_size=batch_size) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment