If we are going to be saving the actual image array for both training and validation datasets, wouldn’t we want BOTH to have shuffle=False so that the labels, classes, and filenames match up when used later?
Yes you would! The notebooks aren’t always exactly the order of operations you need to follow - sometimes I jump around between cells a bit so you do need to think about what to run when.
Let me just state this explicitly in case someone is searching the forums: if you’re working through the statefarm.ipynb notebook and you are getting accuracies that approximate chance when building a model that uses pre-trained vgg layers up through the last Convolution2D layer as inputs this is very likely your problem.
This issue is also discussed (and answered) here:
Very happy I found this thread. I won’t make this mistake with a DirectoryIterator when tying two models together again.