Created
August 6, 2020 05:14
-
-
Save aniruddha27/67e35f8fb338d9164f76ebcb9821bf7c 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
# 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