In that case I don’t understand the question correctly.
Could you explain this part a bit more:



 sanjass:

I have an unusual situation where I need the data in CustomDataset to be stored in a directory in an ImageFolder readable format.


If you are creating the data from scratch, then you might want to save it to the expected folder structure.