No I didn’t mean that the images are in two different dataloaders, I mean that I am training on two different datasets (it’s a GAN), so for every domain, I have some sequences of frames, but the sequences here and there are not equal. But anyways, as I said before, I have a threshold to tell me if the current batch is related to the previous frame (from the same sequence) or not.
So what @ptrblck suggested, I think it can do the work, but without having invalid indices, because I don’t need it I think