RandomColorJitter
class
keras.layers.RandomColorJitter(
value_range=(0, 255),
brightness_factor=None,
contrast_factor=None,
saturation_factor=None,
hue_factor=None,
seed=None,
data_format=None,
**kwargs
)
RandomColorJitter class randomly apply brightness, contrast, saturation and hue image processing operation sequentially and randomly on the input.
Arguments
[0, 1]
or [0, 255]
depending on how your preprocessing pipeline is set up.[1.0 - lower, 1.0 + upper]
. For any pixel x in the channel, the output will be (x - mean) * factor + mean
where mean
is the mean value of the channel.factor
controls the extent to which the image saturation is impacted. factor=0.5
makes this layer perform a no-op operation. factor=0.0
makes the image fully grayscale. factor=1.0
makes the image fully saturated. Values should be between 0.0
and 1.0
. If a tuple is used, a factor
is sampled between the two values for every image augmented. If a single float is used, a value between 0.0
and the passed float is sampled. To ensure the value is always the same, pass a tuple with two identical floats: (0.5, 0.5)
.factor
controls the extent to which the image hue is impacted. factor=0.0
makes this layer perform a no-op operation, while a value of 1.0
performs the most aggressive contrast adjustment available. If a tuple is used, a factor
is sampled between the two values for every image augmented. If a single float is used, a value between 0.0
and the passed float is sampled. In order to ensure the value is always the same, please pass a tuple with two identical floats: (0.5, 0.5)
.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