Get Filenames after Random Split (ImageFolder)

Hi,

I am using torchvision ImageFolder to load my data and have two questions. Maybe you can help me.

After loading, I perform a random split for training, validation and test. How can I get access to a list of the filenames in each dataloader after the split? I would like to get a list of the path/filenames so that I know which image is in which subset. Is this possible without writing a custom dataset?

Thank you much!!