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_invert below:

RandomInvert layer

RandomInvert layer

[source]

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

Preprocessing layer for random inversion of image colors.

This layer randomly inverts the colors of input images with a specified probability range. When applied, each image has a chance of having its colors inverted, where the pixel values are transformed to their complementary values. Images that are not selected for inversion remain unchanged.

Arguments


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