kobiso / CBAM-keras

CBAM implementation on Keras
MIT License
359 stars 134 forks source link

TypeError: _obtain_input_shape() got an unexpected keyword argument 'require_flatten' #2

Open SherlockHua1995 opened 5 years ago

SherlockHua1995 commented 5 years ago

when i check the model graph, this error occurs: TypeError: _obtain_input_shape() got an unexpected keyword argument 'require_flatten' can u give me some advice?

alyato commented 5 years ago

@SherlockHua1995 When i set data_augmentation = True, it show me an error TypeError: __init__() got an unexpected keyword argument 'validation_split' Do you meet it?

ashishpatel26 commented 3 years ago

This code was designed in keras 2.2.0.

pip install keras==2.2.0

future-zy commented 3 years ago

the reason is keras give up the file in keras . you can set up .py file with the code from :https://github.com/keras-team/keras-applications/blob/e52c477/keras_applications/imagenet_utils.py#L235-L331,and import .py into your main .