Skip to content

Instantly share code, notes, and snippets.

@amankharwal

amankharwal/sign language.py Secret

Created Dec 5, 2020
Embed
What would you like to do?
# Create an ImageDataGenerator and do Image Augmentation
train_datagen = ImageDataGenerator(
rescale=1. / 255,
rotation_range=40,
width_shift_range=0.2,
height_shift_range=0.2,
shear_range=0.2,
zoom_range=0.2,
horizontal_flip=True,
fill_mode='nearest'
)
validation_datagen = ImageDataGenerator(
rescale=1 / 255
)
# Keep These
print(training_images.shape)
print(testing_images.shape)
# Their output should be:
# (27455, 28, 28, 1)
# (7172, 28, 28, 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment