This could be caused by the data_augmentation function, resulting from changes to data_augmenter() in which the sequential layer is defined. If you rerun the cells from the beginning and everything works correctly the sequential layer may appear.
my data_augmenter() function is working just fine and tested correctly. I have tried 2 ways to define sequential models but still not getting the sequential part in ‘model2’.
Any suggestions?
BTW, I can still run and pass all tests after this ‘AssertionError’ in the remaining exercise.
@reinoudbosch Can you help me and @bigballerbing to bail out of this problem. I am also facing the same issue as described here by @gsslim and thus far nothing works.
I have been stuck on this for more than 4 hours or so
Even though my data_augmenter() is correctly written, this missing Sequential Layer is posing problems as my Exercise 3 is also throwing error as in the very first line there we have :
base_model = model2.layers[4]
Now since for me the 4th layer is AveragePooling2d ,I get error as AveragePooling2D cannot be trainable.
If you are certain your data_augmenter() is correct, do not forget to run the next cell (cell 7). In this cell data_augmentation is created. If you changed anything in your data_augmenter() but did not re-run this cell, the change made in data_augmenter() will not be included in your model through data_augmentation.