Skip to content

Commit

Permalink
Version boosted to 2.0.3 (#2329)
Browse files Browse the repository at this point in the history
  • Loading branch information
ternaus authored Feb 3, 2025
1 parent 80c58e1 commit 2764cb4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions albumentations/augmentations/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -2443,8 +2443,8 @@ def apply_salt_and_pepper(

def generate_plasma_pattern(
target_shape: tuple[int, int],
roughness: float = 0.5,
random_generator: np.random.Generator = np.random.default_rng(),
roughness: float,
random_generator: np.random.Generator,
) -> np.ndarray:
"""Generate Plasma Fractal with consistent brightness."""

Expand Down
20 changes: 10 additions & 10 deletions albumentations/augmentations/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -5836,12 +5836,12 @@ class PlasmaBrightnessContrast(ImageOnlyTransform):
- 0 means no contrast change
Default: (-0.3, 0.3)
roughness (float): Controls how quickly the noise amplitude decreases at each iteration.
roughness (float): Controls how quickly the noise amplitude increases at each iteration.
Must be greater than 0:
- Low values (< 0.5): Very rough, noisy pattern
- Medium values (~0.5): Natural-looking pattern
- High values (> 0.5): Smoother, more gradual pattern
Default: 0.5
- Low values (< 1.0): Smoother, more gradual pattern
- Medium values (~2.0): Natural-looking pattern
- High values (> 3.0): Very rough, noisy pattern
Default: 3.0
p (float): Probability of applying the transform. Default: 0.5.
Expand Down Expand Up @@ -6016,12 +6016,12 @@ class PlasmaShadow(ImageOnlyTransform):
- Values between create partial shadows
Default: (0.3, 0.7)
roughness (float): Controls how quickly the noise amplitude decreases at each iteration.
roughness (float): Controls how quickly the noise amplitude increases at each iteration.
Must be greater than 0:
- Low values (< 0.5): Very rough, noisy shadows
- Medium values (~0.5): Natural-looking shadows
- High values (> 0.5): Smoother, more gradual shadows
Default: 0.5
- Low values (< 1.0): Smoother, more gradual shadows
- Medium values (~2.0): Natural-looking shadows
- High values (> 3.0): Very rough, noisy shadows
Default: 3.0
p (float): Probability of applying the transform. Default: 0.5.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ requires = [ "setuptools>=45", "wheel" ]
[project]
name = "albumentations"

version = "2.0.2"
version = "2.0.3"

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."
readme = "README.md"
Expand Down

0 comments on commit 2764cb4

Please sign in to comment.