How to load text + image dataset?

When I use datasets.load_dataset(“path”) it loads only my text files
The structure of my dataset is like
/train/123.png
/train/123.txt
/train/124.jpg
/train/124.txt
how am I supposed to load it. Or to which format should I shift it to load it well.

Hi! This doc explains how to create an image dataset (ImageFolder/WebDataset are the best approaches).

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.