Guest User

Untitled

a guest
Feb 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. from keras.preprocessing.image import ImageDataGenerator
  2.  
  3. datagen = ImageDataGenerator(
  4. rotation_range=2,
  5. horizontal_flip=True)
  6.  
  7. if self.horizontal_flip:
  8. if np.random.random() < 0.5:
  9. x = flip_axis(x, img_col_axis)
Add Comment
Please, Sign In to add comment