Thank you for your reply. In dataframe there is file_name column and labels column. I am storing that dataframe in Dataset, and when Dataloader wants random subset from it (index of dataframe’s rows in this case), Dataset just reads file names from dataframe and just loads those images