When trying this I noticed that I can run this only after vgg.finetune(batches). If I try to run this directly after creating an instance of class Vgg16 I get: AttributeError: ‘Sequential’ object has no attribute ‘optimizer’
This is confusing because if understand correctly when an instance of Vgg16 is created, the model is set to be (model = self.model = Sequential()) Sequential and vgg.model.optimizer.lr seems to imply to me that that the Sequential model has an optimizer attribute.
How does this work? Why is it possible to set the learning rate only after running vgg.finetune?