Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shows this error when compiling the code #6

Open
mohit6199 opened this issue Oct 5, 2019 · 2 comments
Open

Shows this error when compiling the code #6

mohit6199 opened this issue Oct 5, 2019 · 2 comments

Comments

@mohit6199
Copy link

15 from keras import initializers
16
---> 17 K.set_image_dim_ordering('th')
18
19 # The dimensionality has been set at 100 for consistency with other GAN implementations.

AttributeError: module 'keras.backend' has no attribute 'set_image_dim_ordering'

@zjuirene
Copy link

15 from keras import initializers
16
---> 17 K.set_image_dim_ordering('th')
18
19 # The dimensionality has been set at 100 for consistency with other GAN implementations.

AttributeError: module 'keras.backend' has no attribute 'set_image_dim_ordering'

change image_dim_ordering('th') to image_data_format()
but have another error...

@jawadSajid
Copy link

Try this: K.common.set_image_dim_ordering('th')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants