Hi ptrblck,
I understand that color_jitter(img) will apply the transformation to the img.
However, I want to use the same exact transformation and apply it to multiple images (different sizes so can’t batch them together). This used to work with the code snippet you provided. Since torch 1.9.1   transforms.ColorJitter.get_params seems to return order and values of the transformations instead of the lambda functions as in previous torch versions.
I guess a workaround would be to take the values of transforms.ColorJitter.get_params and use them in functions like torchvision.transforms.functional.adjust_brightness but this seems like a roundabout way of doing things.
Thank you for your help so far.