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

ERROR! #9

Open
NightFury10497 opened this issue Jan 9, 2019 · 2 comments
Open

ERROR! #9

NightFury10497 opened this issue Jan 9, 2019 · 2 comments

Comments

@NightFury10497
Copy link

model = ResNet50(include_top=True, weights='imagenet')
Traceback (most recent call last):

File "", line 1, in
model = ResNet50(include_top=True, weights='imagenet')

File "", line 144, in ResNet50
include_top=include_top)

TypeError: _obtain_input_shape() got an unexpected keyword argument 'include_top'

@braincs
Copy link

braincs commented Apr 30, 2019

replace "include_top" as "require_flatten" in the resnet50. have a try

@AzwadAbid
Copy link

@NightFury10497
Keras 2.2 have some changes. Just do this and your program will work.

Change from:
from keras.applications.imagenet_utils import _obtain_input_shape

To:
from keras_applications.imagenet_utils import _obtain_input_shape

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