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

TypeError: _obtain_input_shape() got an unexpected keyword argument 'dim_ordering' #10

Closed
MartinThoma opened this issue Apr 3, 2017 · 6 comments

Comments

@MartinThoma
Copy link

Traceback (most recent call last):
  File "cifar10.py", line 31, in <module>
    growth_rate=growth_rate, nb_filter=nb_filter, dropout_rate=dropout_rate)
  File "DenseNet/densenet.py", line 98, in DenseNet
    include_top=include_top)
TypeError: _obtain_input_shape() got an unexpected keyword argument 'dim_ordering'
@MartinThoma
Copy link
Author

@titu1994
Copy link
Owner

titu1994 commented Apr 4, 2017

You are right. However I am currently holding off pushing the update to Keras 2 api since there are a few bugs that need to be addressed.

Once the Keras 2 api stabilizes (perhaps with the release of Tensorflow 1.1 or 1.2, since by then Keras will be merged into Tensorflow so most of the bugs should be squashed), I will port the code.

In the meantime, you can use my code from the contrib branch https://github.com/titu1994/keras-contrib/blob/master/keras_contrib/applications/densenet.py to use densenet with Keras 2 api.

@titu1994 titu1994 closed this as completed Apr 4, 2017
@beyhangl
Copy link

why they are changing parameter name for all new version ? It's waste of time to find new parameter names for all new version. Same situation for opencv library. What's your problem with parameter names ?

@titu1994
Copy link
Owner

@beyhangl this issue has been fixed since 6+ months ?

@beyhangl
Copy link

with latest version (2.0.8) it's not working again.

@beyhangl
Copy link

i made downgrade to 2.0.0 and works fine.

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