fchollet / deep-learning-models

Keras code and weights files for popular deep learning models.
MIT License
7.31k stars 2.46k forks source link

Xception Help #97

Open czainab opened 6 years ago

czainab commented 6 years ago

I am trying to run the xception model code but it gives a type error of: _obtain_input_shape() got an unexpected keyword argument 'include_top'

Davidjordao commented 4 years ago

try change from keras.applications.imagenet_utils import _obtain_input_shape for from keras_applications.imagenet_utils import _obtain_input_shape

or try require_flatten instead include_top

model = Xception(require_flatten=False, weights='imagenet')