Maybe it would be easier to remove the ResizeTransformation from transformList and apply F.interpolate on the complete batch inside the DataLoader loop?
This would of course not be applied from each worker in Dataset.__getitem__, but might not necessarily be slower.
Would that work for you? I’m always a bit skeptical when it comes to using the seeding mechanism to fix these random transformations, as all other “random” transformations will also be fixed (e.g. RandomRotation).