class
Normalization2D
PythonApply fixed mean/variance normalization to 2D inputs.
Normalization2D( mean: float | list[float] | tuple[float, ...], variance: float | list[float] | tuple[float, ...], epsilon: float = 1e-06, name: str | None = None, **kwargs={},)Apply fixed mean/variance normalization to 2D inputs.
Base class: BaseAugmentation2D.
Inherited from BaseAugmentation: augment_masks(), augment_sample(), augment_targets(), batch_augment(), call(), get_random_transformations().
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
mean | float | list[float] | tuple[float, ...] | Required | Mean value(s) used for normalization. |
variance | float | list[float] | tuple[float, ...] | Required | Variance value(s) used for normalization. |
epsilon | float | 1e-06 | Small value to avoid division by zero. |
name | str | None | None | Layer name. |
attribute
training_only
Pythontraining_only = Falseattribute
mean
Pythonmean: float | list[float] | tuple[float, ...] = meanattribute
variance
Pythonvariance: float | list[float] | tuple[float, ...] = varianceattribute
epsilon
Pythonepsilon: float = epsilonmethod
augment_samples
PythonNormalize a batch of samples.
augment_samples(inputs) -> keras.KerasTensorNormalize a batch of samples.
method
get_config
PythonSerialize the configuration.
get_config()Serialize the configuration.