A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://keras.io/api/layers/preprocessing_layers/image_augmentation/random_saturation below:

RandomSaturation layer

RandomSaturation layer

[source]

RandomSaturation class
keras.layers.RandomSaturation(
    factor, value_range=(0, 255), data_format=None, seed=None, **kwargs
)

Randomly adjusts the saturation on given images.

This layer will randomly increase/reduce the saturation for the input RGB images.

Arguments

Example

(images, labels), _ = keras.datasets.cifar10.load_data()
images = images.astype("float32")
random_saturation = keras.layers.RandomSaturation(factor=0.2)
augmented_images = random_saturation(images)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4