rcmalli / keras-vggface

VGGFace implementation with Keras Framework
MIT License
928 stars 417 forks source link

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

Closed heylamourding closed 6 years ago

heylamourding commented 6 years ago

I download keras_vggface version4.0. But this error still exists. I call the function like this: vgg_model_conv = VGGFace(include_top=False, input_shape=(224, 224, 3), pooling='avg')

Then I change to require_flatten to include_top. It works. input_shape = _obtain_input_shape(input_shape, default_size=224, min_size=48, data_format=K.image_data_format(), include_top=include_top)