CBAM-keras icon indicating copy to clipboard operation
CBAM-keras copied to clipboard

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

Open SherlockHua1995 opened this issue 7 years ago • 3 comments
trafficstars

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 avatar Sep 26 '18 03:09 SherlockHua1995

@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?

alyato avatar Jan 23 '19 01:01 alyato

This code was designed in keras 2.2.0.

pip install keras==2.2.0

ashishpatel26 avatar Feb 14 '21 13:02 ashishpatel26

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 .

future-zy avatar Mar 24 '21 05:03 future-zy