ResNet50 unexpected keyword argument 'include_top'
santoshk17 opened this issue · 3 comments
santoshk17 commented
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
pc-mysql commented
it works
smitsavaliya-1258 commented
TypeError: Xception() got an unexpected keyword argument 'require_flatten'