tfm.vision.preprocess_ops.random_contrast

Stay organized with collections Save and categorize content based on your preferences.

Jitters contrast of an image, similarly to torchvision`s ColorJitter.

image (tf.Tensor): Of shape [height, width, 3] and type uint8. contrast (float, optional): Magnitude for contrast jitter. Defaults to 0. seed (int, optional): Random seed. Defaults to None.

tf.Tensor The augmented image of type uint8.