Solved by ptrblck in post #5 
              
              
                The Dataset.__getitem__ will get an index as the argument from the DataLoader to create a batch. 
These indices will be in the range [0, len(dataset)-1], so you would only have to make sure to load each corresponding sample using the passed index. 
I would still recommend to check the path and make…