START-Summit-2017-Blockchain-Machine-Learning-Workshop icon indicating copy to clipboard operation
START-Summit-2017-Blockchain-Machine-Learning-Workshop copied to clipboard

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

Open vinayakumarr opened this issue 7 years ago • 0 comments

When I tried to run the python classify.py image.png, giving the following error

Using TensorFlow backend. content:

Traceback (most recent call last): File "classify.py", line 74, in main() File "classify.py", line 67, in main print('> ' + ImageClassifier.predict(sys.argv[1]) + ' <\n') File "classify.py", line 39, in predict model = ResNet50(weights='imagenet') File "/home/vinay/workshop_code/code/resnet50.py", line 193, in ResNet50 include_top=include_top) TypeError: _obtain_input_shape() got an unexpected keyword argument 'include_top'

How to correct this?

vinayakumarr avatar Dec 12 '17 16:12 vinayakumarr