Hi,
To train with pairs of images you have to generate couple of corresponding lists, such that list1[idx] finds its analogous sample in list2[idx].
Dataloader is data agnostic. At the time of shuffling, it only shuffles a list of indices, which initially is ordered.