We had a similar issue described here 702 but with multiple target images for a single input image.
I think the code given in the other topic might be a good starter and you would have to swap the data paths for the target paths.
Depending on your use case, you could then sample a single data - target pair in __getitem__ or get all data images at once.