Solved by ptrblck in post #2 
              
              
                You could use the staticmethod get_params to apply the same “random” transformation via: 
img = transforms.ToPILImage()(torch.randn(3, 224, 224))

color_jitter = transforms.ColorJitter(brightness=0.1, contrast=0.1, saturation=0.1, hue=0.1)
transform = transforms.ColorJitter.get_params(
    color_jit…