Hi,
I’m trying to run the the notebook for lesson 2. Under the topic “Modifying the model”, I tried to run the code to retrain the new last layer of the VGG model. When I run:
AttributeError: 'NumpyArrayIterator' object has no attribute 'N'
Jeremy had a note saying: “Careful! Now that we’ve modified the definition of model, be careful not to rerun any code in the previous sections, without first recreating the model from scratch! (Yes, I made that mistake myself, which is why I’m warning you about it now…)”
I thought maybe I should first run:
vgg = Vgg16()
model = vgg.model
and once I redefined the model, continue, but I still get the same error. Does anybody know how to fix this error?