github albumentations-team/albumentations 2.0.8
🛠 Albumentations 2.0.8 Release Notes

3 months ago

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

  1. Help Us Grow – Found Albumentations useful? Become a sponsor to support ongoing development.
  2. Show Your Support – A ⭐ on GitHub helps others discover us.
  3. 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.

image

Speedups

Vectorized application to videos and volume in

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.

Don't miss a new albumentations release

NewReleases is sending notifications on new releases.