Skip to content

Commit

Permalink
Boost version (#2045)
Browse files Browse the repository at this point in the history
* Empty-Commit

* Version boosted to 1.4.21

* Fixed rsandom seed in test

* Fixed seed in another test
  • Loading branch information
ternaus authored Oct 31, 2024
1 parent 359ac7b commit 91a0531
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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 = "1.4.20"
version = "1.4.21"

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."
readme = "README.md"
Expand Down
3 changes: 2 additions & 1 deletion tests/test_bbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,7 @@ def test_random_sized_crop_size() -> None:
aug = A.Compose(
[RandomSizedCrop(min_max_height=(70, 90), size=(50, 50), p=1.0)],
bbox_params={"format": "albumentations"},
seed=42,
)
transformed = aug(image=image, bboxes=bboxes)
assert transformed["image"].shape == (50, 50, 3)
Expand All @@ -897,7 +898,7 @@ def test_random_sized_crop_size() -> None:
def test_random_resized_crop_size() -> None:
image = np.ones((100, 100, 3))
bboxes = [(0.2, 0.3, 0.6, 0.8, 2), (0.3, 0.4, 0.7, 0.9, 99)]
aug = A.Compose([RandomResizedCrop(size=(50, 50), p=1.0)], bbox_params={"format": "albumentations"})
aug = A.Compose([RandomResizedCrop(size=(50, 50), p=1.0)], bbox_params={"format": "albumentations"}, seed=42)
transformed = aug(image=image, bboxes=bboxes)
assert transformed["image"].shape == (50, 50, 3)
assert len(bboxes) == len(transformed["bboxes"])
Expand Down

0 comments on commit 91a0531

Please sign in to comment.