Skip to content

Commit 2764cb4

Browse files
authored
Version boosted to 2.0.3 (#2329)
1 parent 80c58e1 commit 2764cb4

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

albumentations/augmentations/functional.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2443,8 +2443,8 @@ def apply_salt_and_pepper(
24432443

24442444
def generate_plasma_pattern(
24452445
target_shape: tuple[int, int],
2446-
roughness: float = 0.5,
2447-
random_generator: np.random.Generator = np.random.default_rng(),
2446+
roughness: float,
2447+
random_generator: np.random.Generator,
24482448
) -> np.ndarray:
24492449
"""Generate Plasma Fractal with consistent brightness."""
24502450

albumentations/augmentations/transforms.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -5836,12 +5836,12 @@ class PlasmaBrightnessContrast(ImageOnlyTransform):
58365836
- 0 means no contrast change
58375837
Default: (-0.3, 0.3)
58385838
5839-
roughness (float): Controls how quickly the noise amplitude decreases at each iteration.
5839+
roughness (float): Controls how quickly the noise amplitude increases at each iteration.
58405840
Must be greater than 0:
5841-
- Low values (< 0.5): Very rough, noisy pattern
5842-
- Medium values (~0.5): Natural-looking pattern
5843-
- High values (> 0.5): Smoother, more gradual pattern
5844-
Default: 0.5
5841+
- Low values (< 1.0): Smoother, more gradual pattern
5842+
- Medium values (~2.0): Natural-looking pattern
5843+
- High values (> 3.0): Very rough, noisy pattern
5844+
Default: 3.0
58455845
58465846
p (float): Probability of applying the transform. Default: 0.5.
58475847
@@ -6016,12 +6016,12 @@ class PlasmaShadow(ImageOnlyTransform):
60166016
- Values between create partial shadows
60176017
Default: (0.3, 0.7)
60186018
6019-
roughness (float): Controls how quickly the noise amplitude decreases at each iteration.
6019+
roughness (float): Controls how quickly the noise amplitude increases at each iteration.
60206020
Must be greater than 0:
6021-
- Low values (< 0.5): Very rough, noisy shadows
6022-
- Medium values (~0.5): Natural-looking shadows
6023-
- High values (> 0.5): Smoother, more gradual shadows
6024-
Default: 0.5
6021+
- Low values (< 1.0): Smoother, more gradual shadows
6022+
- Medium values (~2.0): Natural-looking shadows
6023+
- High values (> 3.0): Very rough, noisy shadows
6024+
Default: 3.0
60256025
60266026
p (float): Probability of applying the transform. Default: 0.5.
60276027

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ requires = [ "setuptools>=45", "wheel" ]
66
[project]
77
name = "albumentations"
88

9-
version = "2.0.2"
9+
version = "2.0.3"
1010

1111
description = "Fast, flexible, and advanced augmentation library for deep learning, computer vision, and medical imaging. Albumentations offers a wide range of transformations for both 2D (images, masks, bboxes, keypoints) and 3D (volumes, volumetric masks) data, with optimized performance and seamless integration into ML workflows."
1212
readme = "README.md"

0 commit comments

Comments
 (0)