Reputation: 161
when try to do set_image_dim_ordering('th')
from keras import backend as K
K.set_image_dim_ordering('th')
I got attribute error:
AttributeError: module 'keras.backend' has no attribute 'set_image_dim_ordering'
Upvotes: 1
Views: 10118
Reputation: 1310
Use this instead:
K.set_image_data_format('channels_first')
The latest version has replaced the image_dim_ordering
to image_data_format
.
For more info refer to thies issue
Upvotes: 6