Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts/training.py: Use keras.backend.image_data_format() to support…
… newer keras version. If you want to support newer Keras, then according to [keras-team/keras#12649](keras-team/keras#12649) the image_dim_ordering method has to be renamed to keras.backend.image_data_format() This is the way to use the new Keras API: setting: K.set_image_dim_ordering('tf') --> K.set_image_data_format('channels_last') K.set_image_dim_ordering('th') --> K.set_image_data_format('channels_first') checking: K.image_dim_ordering() == 'tf' --> K.image_data_format() == 'channels_last' K.image_dim_ordering() == 'th' --> K.image_data_format() == 'channels_first' Signed-off-by: Elvis Dowson <elvis.dowson@gmail.com>
- Loading branch information