Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. from keras import backend as K
  2.  
  3. if K.image_data_format() == 'channels_first':
  4. input_shape = (3, img_width, img_height)
  5. else:
  6. input_shape = (img_width, img_height, 3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement