This repository was archived by the owner on Jul 10, 2025. It is now read-only.
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:
imageimage_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.
