Skip to content

Commit

Permalink
Default gauss noise is exact (#1800)
Browse files Browse the repository at this point in the history
  • Loading branch information
ternaus committed Jun 19, 2024
1 parent 40f36a0 commit a6ceade
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions albumentations/augmentations/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1617,7 +1617,7 @@ class GaussNoise(ImageOnlyTransform):
Default: True
noise_scale_factor (float): Scaling factor for noise generation. Value should be in the range (0, 1].
When set to 1, noise is sampled for each pixel independently. If less, noise is sampled for a smaller size
and resized to fit the shape of the image. Smaller values make the transform faster. Default: 0.5
and resized to fit the shape of the image. Smaller values make the transform faster. Default: 1.0.
p (float): Probability of applying the transform. Default: 0.5.
Targets:
Expand All @@ -1639,7 +1639,7 @@ def __init__(
var_limit: ScaleFloatType = (10.0, 50.0),
mean: float = 0,
per_channel: bool = True,
noise_scale_factor: float = 0.5,
noise_scale_factor: float = 1,
always_apply: Optional[bool] = None,
p: float = 0.5,
):
Expand Down

0 comments on commit a6ceade

Please sign in to comment.