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)
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)