anuragmishracse / caption_generator

A modular library built on top of Keras and TensorFlow to generate a caption in natural language for any input image.
MIT License
265 stars 120 forks source link

updated argument for _obtain_input_shape #19

Open balaneshin opened 6 years ago

balaneshin commented 6 years ago

To fix error: TypeError: _obtain_input_shape() got an unexpected keyword argument 'include_top'.

Without this change, to use vgg16.py, keras version should be degraded to 2.0.0.

shubham-chawla commented 6 years ago

To fix error: TypeError: _obtain_input_shape() got an unexpected keyword argument 'include_top'.

If you are on Python 3.x then change include_top=include_top) to require_flatten=include_top)