In ImageDataGenerator it gives different transformation of each images for every epochs. For example We have 2 classes with 1200 images belongs to 0 class and 300 images belongs to 1 class. ImageDataGeneratorin keras transforms all the 1500 images but not an imbalance class images only for each epochs. I don't know how this transformation balances the imbalanced classes in our data and gives better results ??.
ImageDataGenerator
0
1
2.1m questions
2.1m answers
60 comments
57.0k users