deep-learning-models icon indicating copy to clipboard operation
deep-learning-models copied to clipboard

ResNet50 unexpected keyword argument 'include_top'

Open santoshk17 opened this issue 6 years ago • 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?

santoshk17 avatar Nov 18 '18 04:11 santoshk17

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

yeLer avatar Nov 22 '18 09:11 yeLer

it works

pc-mysql avatar Oct 31 '20 07:10 pc-mysql

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

smitsavaliya-1258 avatar Aug 16 '21 16:08 smitsavaliya-1258