I am using Keras library to build a CNN model. I want to use data augmentation for training data.
Should I use rescale parameters for data augmentation?
Data Science Stack Exchange is a question and answer site for Data science professionals, Machine Learning specialists, and those interested in learning more about the field. It only takes a minute to sign up.Sign up to join this community
rescale argument byitself does not augment your data.
If you input pixels are in the range of [0,255], you can rescale to [0,1] using the code in your question. Just remember to do the same on all partitions of your dataset.
If you input is already in the range of [0,1], then obviously you should not rescale.