I have had ImageDataGenerator implemented with featurewise_center=True, featurewise_std_normalization=True. I fit the generator to my training set (it learns some statistics) and train my model. All is well.
After training is done and python is closed, how do I do the same preprocessing on my test set using the generator? I want to carry over the statistics learned from fit to be used whenever I want to test or further train my model (where the original training set might not be available anymore).
Thanks in advance
I have solved this problem. To those who are still coming across it. Follow below steps.
Assign the averaged mean and averaged STD to new ImageDataGenerator.