How to Manually Set Validation Set

In an attempt to fix an imbalance of labels in my images dataset I’ve split my train and validation images into 2 separate folders, so that I can oversample for the training set. I can’t seem to find anywhere in the docs that allows me to manually load the images in my validation folder into my DataBlock and/or learner.

Would anyone be able to help with this by showing me how this is done or pointing me to the right page in the docs?


Hey @BHouwens

Check this out

Exactly this, thank you! In the case of separate folder structures, if anyone sees this in future, the FuncSplitter or GrandParentSplitter are the most appropriate if all your image folders are within one parent folder.

1 Like