import torch
import PIL
from torchvision import transforms

img = transforms.ToPILImage()(torch.randn(3, 224, 224))

color_jitter = transforms.ColorJitter(brightness=0.0, contrast=0., saturation=0., hue=0.)
transform = transforms.ColorJitter.get_params(
    color_jitter.brightness, color_jitter.contrast, color_jitter.saturation,
    color_jitter.hue)

img_trans1 = transform(img)
img_trans2 = transform(img)

using pytorch 1.8.1 and torchvision 0.9.1
build: py3.8_cuda11.1_cudnn8.0.5_0