I have a dataset already splited manually into train, validation and test with two classes each 0 and 1
i want my network to fetch equal number of images in every batch
constrain i am not having equal number of images in each class
Train —> class 0 —> 1000, class 1 —>100
say if my batch size is 30 , i need to have 15 from class 0 and 15 from class 1 for every iteration.
how to achieve this? also i am using Vgg16 architecture in keras