๐ Albumentations 2.0.7 Release Notes
Want to stay in the loop?
Get updates on new features, documentation changes, and tools like the UI explorer by subscribing to our mailing list:
๐ https://albumentations.ai/subscribe/
You can unsubscribe anytime.
๐ Support Our Work
- Help Us Grow โ Found Albumentations useful? Become a sponsor to support ongoing development.
- Show Your Support โ A โญ on GitHub helps others discover us.
- Join the Community โ Report issues or suggest improvements via GitHub Issues or join discussions on Discord.
๐ง Improvements
- You can now pass an empty list for masks to any transform:
transform(image=image, masks=[])
New: area_for_downscale parameter
Added to: โข RandomScale โข LongestMaxSize โข SmallestMaxSize โข Resize
area_for_downscale options:
โข None โ default behavior
โข "image" โ use cv2.INTER_AREA when image is downscaled
โข "image_mask" โ use cv2.INTER_AREA for both image and mask
Using cv2.INTER_AREA for downscaling helps reduce artifacts, unlike other interpolation methods.
๐ Bug Fixes โข Fixed serialization in ToFloat
โ TL;DR โข โ Empty mask lists now supported โข โ area_for_downscale improves downscaling quality โข ๐ Serialization fix in ToFloat โข ๐ Subscribe for updates