Skip to content

Albumentations 1.4.8 Release Notes

Latest
Compare
Choose a tag to compare
@ternaus ternaus released this 28 May 23:52
24a654c
  • Support our work
  • Documentation
  • Deprecations
  • Improvements and bug fixes

Support Our Work

  1. 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.
  2. Haven't starred our repo yet? Show your support with a ⭐! It's just only one mouse click.
  3. 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 documentation links to the UI on HuggingFace to explore hyperparameters visually.

Screenshot 2024-05-28 at 16 27 09 Screenshot 2024-05-28 at 16 28 03

Deprecations

RandomSnow

Updated interface:

Old way:

transform = A.Compose([A.RandomSnow(
  snow_point_lower=0.1,
  snow_point_upper=0.3,
  p=0.5
)])

New way:

transform = A.Compose([A.RandomSnow(
  snow_point_range=(0.1, 0.3),
  p=0.5
)])

by @MarognaLorenzo

RandomRain

Old way

transform = A.Compose([A.RandomSnow(
  slant_lower=-10,
  slant_upper=10,
  p=0.5
)])

New way:

transform = A.Compose([A.RandomRain(
  slant_range=(-10, 10),
  p=0.5
)])

by @MarognaLorenzo

Improvements

Created library with core functions albucore. Moved a few helper functions there.
We need this library to be sure that transforms are:

  1. At least as fast as numpy and opencv. For some functions it is possible to be faster than both of them.
  2. Easier to debug.
  3. Could be used in other projects, not related to Albumentations.

Bugfixes

  • Bugfix in check_for_updates. Now the pipeline does not throw an error regardless of why we cannot check for update.
  • Bugfix in RandomShadow. Does not create unexpected purple color on bright white regions with shadow overlay anymore.
  • BugFix in Compose. Now Compose([]) does not throw an error, but just works as NoOp by @ayasyrev
  • Bugfix in min_max normalization. Now return 0 and not NaN on constant images. by @ternaus
  • Bugfix in CropAndPad. Now we can sample pad/crop values for all sides with interface like ((-0.1, -0.2), (-0.2, -0.3), (0.3, 0.4), (0.4, 0.5)) by @christian-steinmeyer
  • Small refactoring to decrease tech debt by @ternaus and @ayasyrev