Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version boosted to 2.0.3 #2329

Merged
merged 1 commit into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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