fchollet/deep-learning-models

ResNet50 unexpected keyword argument 'include_top'

santoshk17 opened this issue · 3 comments

Keras version - 2.2.4
Python - 3.6.6
issue:
----> 6 model = ResNet50(input_tensor=image_input, include_top=True,weights='imagenet')
TypeError: _obtain_input_shape() got an unexpected keyword argument 'include_top'

is there a fix for this?

yeLer commented

in the line 195 of resNet50.py ,you need to change include_top=include_top to require_flatten=include_top

it works

TypeError: Xception() got an unexpected keyword argument 'require_flatten'