Image label

I have images in one folder and a text file which contain labels/classes for each image. How do I load data using

I believe your best path forward is to load the text file into a data frame using pandas, use the datablock api, from_folder to collect your image data, and label it using label_from_func, where you’d provide a function that finds in the data frame the row that contains your image name/path, and then the id.

You’ll have to give the format of your text file if this doesn’t work, but ideally your text file is something simple like ‘image_path/name, label’ for lthe label function