Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # initialize the training data augmentation object
- # randomly shifts, translats, and flips each training sample
- trainAug = ImageDataGenerator(
- rescale=1 / 255.0,
- rotation_range=20,
- zoom_range=0.05,
- width_shift_range=0.05,
- height_shift_range=0.05,
- shear_range=0.05,
- horizontal_flip=True,
- fill_mode="nearest")
Add Comment
Please, Sign In to add comment