Albumentations 1.4.7 Release Notes
- Support our work
- Documentation
- Deprecations
- Improvements and bug fixes
Support Our Work
- Love the library? You can contribute to its development by becoming a sponsor for the library. Your support is invaluable, and every contribution makes a difference.
- Haven't starred our repo yet? Show your support with a ⭐! It's just only one mouse click.
- Got ideas or facing issues? We'd love to hear from you. Share your thoughts in our issues or join the conversation on our Discord server for Albumentations
Documentation
- Added to the website tutorial on how to use Albumentations with Hugginigface for object Detection. Based on the tutorial by @qubvel
Deprecations
ImageCompression
Old way:
transform = A.Compose([A.ImageCompression(
quality_lower=75,
quality_upper=100,
p=0.5
)])
New way:
transform = A.Compose([A.ImageCompression(
quality_range=(75, 100),
p=0.5
)])
Downscale
Old way:
transform = A.Compose([A.Downscale(
scale_min=0.25,
scale_max=1,
interpolation= {"downscale": cv2.INTER_AREA, "upscale": cv2.INTER_CUBIC},
p=0.5
)])
New way:
transform = A.Compose([A.Downscale(
scale_range=(0.25, 1),
interpolation_pair = {"downscale": cv2.INTER_AREA, "upscale": cv2.INTER_CUBIC},
p=0.5
)])
As of now both ways work and will provide the same result, but old functionality will be removed in later releases.
by @ternaus
Improvements
- Buggix in
Blur
. - Bugfix in
bbox clipping
, it could be not intuitive, but boxes should be clipped byheight, width
and notheight - 1, width -1
by @ternaus - Allow to compose only keys, that are required there. Any extra unnecessary key will give an error by @ayasyrev
- In
PadIfNeeded
if value parameter is not None, but border mode is reflection, border mode is changed tocv2.BORDER_CONSTANT
by @ternaus