CBAM-keras
CBAM-keras copied to clipboard
TypeError: _obtain_input_shape() got an unexpected keyword argument 'require_flatten'
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?
@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?
This code was designed in keras 2.2.0.
pip install keras==2.2.0
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 .