Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from keras.preprocessing.image import ImageDataGenerator
- datagen = ImageDataGenerator(
- rotation_range=2,
- horizontal_flip=True)
- if self.horizontal_flip:
- if np.random.random() < 0.5:
- x = flip_axis(x, img_col_axis)
Add Comment
Please, Sign In to add comment