Hi I’m trying to modify contrast in the transformation pipeline for data augmentation but I have this error
TypeError: adjust_contrast() missing 1 required positional argument: 'img’
This is my code
transform = transforms.Compose([
    transforms.Grayscale(num_output_channels=1),
    transforms.RandomRotation(degrees= (-15, 15)),
    transforms.ToTensor(),
    transforms.functional.adjust_contrast( contrast_factor= 0.5)
    ])