I’m interested in doing an image dataset manual split of 2 classes that are 94% and 6% of my dataset. I’m at a loss for how to do this as I’ve just been doing a subset random sampler, but I’d like to have equal minority presence in train/valid/test splits.
How can I make a list of majority+minority images and then pass into ImageFolder?