i would like to ask question about one thing : for instance common form for transfer learning is this :
base_model = VGG19(input_shape=(224, 224, 3), weights='imagenet', pooling="avg", include_top=False)
x = Dense(10, activation="softmax", name="output")(base_model.output)
model = Model(inputs=base_model.input, outputs=x)
print(model.summary())
i am always using a simplest form, therefore i will use folloiwng form :
base_model =VGG19(include_top=False,input_shape=(224,224,3))
model =Sequential()
model.add(base_model)
model.add(Flatten())
print(model.summary())
i would like to ask if these forms are equivalent? i am not talking about classification layer, from convolution to classification layer, more specifily pooling=”avg” and flatten both should be used right?