When to create custom dataset class

what is the purpose of creating a custom dataset class if we can use ImageFolder from torchvision package


For people that do not work with images for example.
Or for people that do but do not store images on the disk in folders the same way ImageFolder assumes it should be.

1 Like

thanks for the reply, what do you mean do not work with images? like text and dataframes?

Yes like text or audio or video.

So if I have a dataset that follows the same way ImageFolder assumes, then can I use it, in professional work?