Thanks Kushaj, but I don’t think you understood what I meant, so I’ll explain again.
I don’t need to map the image to a text file. Let’s assume I have 5 pairs of images and text files. I want to load an image randomly for training, and only after that- to load the matching text file. So if for example the loader loaded randomly the third image, I would like to pick and load now the corresponding third text file.
In my folders, the images and the corresponding text files are in the same order, if it helps.
Sorry if I wasn’t clear at the begining.