Solved by ptrblck in post #2 
              
              
                I assume you would like to create a Dataset returning both images? 
The easiest way would be to create an own Dataset class and use your code snippet to load the data: 
class MyDataset(Dataset):
    def __init__(self, image1_paths, image2_paths, transform=None):
        self.image1_paths = image1_pa…