Skip to content

Commit 91a0531

Browse files
authored
Boost version (#2045)
* Empty-Commit * Version boosted to 1.4.21 * Fixed rsandom seed in test * Fixed seed in another test
1 parent 359ac7b commit 91a0531

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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 = "1.4.20"
9+
version = "1.4.21"
1010

1111
description = "Fast, flexible, and advanced image augmentation library for deep learning and computer vision. Albumentations offers a wide range of transformations for images, masks, bounding boxes, and keypoints, with optimized performance and seamless integration into ML workflows."
1212
readme = "README.md"

tests/test_bbox.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,7 @@ def test_random_sized_crop_size() -> None:
888888
aug = A.Compose(
889889
[RandomSizedCrop(min_max_height=(70, 90), size=(50, 50), p=1.0)],
890890
bbox_params={"format": "albumentations"},
891+
seed=42,
891892
)
892893
transformed = aug(image=image, bboxes=bboxes)
893894
assert transformed["image"].shape == (50, 50, 3)
@@ -897,7 +898,7 @@ def test_random_sized_crop_size() -> None:
897898
def test_random_resized_crop_size() -> None:
898899
image = np.ones((100, 100, 3))
899900
bboxes = [(0.2, 0.3, 0.6, 0.8, 2), (0.3, 0.4, 0.7, 0.9, 99)]
900-
aug = A.Compose([RandomResizedCrop(size=(50, 50), p=1.0)], bbox_params={"format": "albumentations"})
901+
aug = A.Compose([RandomResizedCrop(size=(50, 50), p=1.0)], bbox_params={"format": "albumentations"}, seed=42)
901902
transformed = aug(image=image, bboxes=bboxes)
902903
assert transformed["image"].shape == (50, 50, 3)
903904
assert len(bboxes) == len(transformed["bboxes"])

0 commit comments

Comments
 (0)