Hi, I’d like to make the dataloader that samples the minibatch consists of specific class all the time.
For example, if the batch size 32, and the class label is 4(cat, dog, truck, ship), I want to make the minibatch as 4examples of cat, 12 examples of dog, 4 examples of truck, 12 examples of ship.
Is there any solutions to make dataloader like above?