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
Added area_for_downscale
to RandomResizedCrop and RandomSizedCrop
parameter may have value:
image
image_mask
- None
When enabled will use interpolation that was passed to the transform for upscale, but cv2.INTER_AREA
for downscale, as for downscale INTER_AREA
generates the least amount of artifacts.
Speedups
Vectorized application to videos and volume in
- CoarseDropout, Erasing and ConstrainedCoarseDropout. (5.2x speedup) @huydoanx172
- Pad, PadIfNeeded. (3.5x speedup) by @martinsbruveris
When applied to videos Albumentations on 1 CPU core is still, slower than torchvision on GTX 4090, (Benchmark on videos). But with such pull requests, the gap. hopefully, will get smaller.
Bugfixes
- Fixed bug in MotionBlur, direction argument was not used.
- Bugfix in saving / loading piplines to huggingface hub. Now it works in windows as well.