tf.image.random_saturation

View source on GitHub

Adjust the saturation of RGB images by a random factor.

tf.image.random_saturation(
    image, lower, upper, seed=None
)

Equivalent to adjust_saturation() but uses a saturation_factor randomly picked in the interval [lower, upper].

Args:

Returns:

Adjusted image(s), same shape and DType as image.

Raises: