Skip to content

1.4.0

Compare
Choose a tag to compare
@ternaus ternaus released this 17 Feb 21:19
· 110 commits to main since this release
004fabb

Albumentations 1.4.0 Release Notes

  • Request
  • Highlights
  • New transform
  • Backwards Incompatible Changes
  • Improvements
  • Bug fixes

Request

  1. If you enjoy using the library as an individual developer or during the day job as a part of the company, please consider becoming a sponsor for the library. Every dollar helps.
  2. If you did not give our repo a ⭐, it is [only one mouse click].(https://github.com/albumentations-team/albumentations)
  3. If you have feature requests, proposals, or encounter issues - submit your request to issues or, our new initiative, - Discord server for albumentations

Highlights

In this release, we mainly focused on the technical debt as its decrease allows faster iterations and bug fixes in the codebase. We added only one new transform, did not work on speeding up transforms, and other changes are minor.

  1. We are removing the dependency on the imgaug library. The library was one of our inspirations when we created Albumentations, but maintainers of imgaug ceased its support which caused inconsistencies in library versions. It was done in 2021, say commit ba44eff by @Dipet .

But, somehow, we are cutting this dependency only in 2024.

  1. Added typing in all of the codebase. When we started the library, Python 2 was still widely used; hence, none of the original codebases had types specified for function arguments and return types. Since the end of the support for Python 2, we added types to the new or updated code, but only now have we covered all the codebase.

New transform

Screenshot 2024-02-17 at 13 09 01
  • Added XYMasking transform: applies masking strips to an image, either horizontally (X axis) or vertically (Y axis), simulating occlusions. This transform is helpful for training models to recognize images with varied visibility conditions. It's particularly effective for spectrogram images, allowing spectral and frequency masking to improve model robustness.
    As other dropout transforms CoarseDropout, MaskDropout, GridDropout it supports images, masks and keypoints as targets. (004fabb by @ternaus )

Backward Incompatible Changes

The deprecated code, including 15 transforms, was removed.
Dependency on the imgaug library was removed.

(be6a217 by @ternaus )

Deleted Transforms

  1. JpegCompression. Use ImageCompression instead.
  2. RandomBrightness. Use RandomBrigtnessContrast instead.
  3. RandomContrast. Use RandomBrigtnessContrast instead.
  4. Cutout. Use CoarseDropout instead.
  5. ToTensor. Use ToTensorV2 instead.
  6. IAAAdditiveGaussianNoise. Use GaussNoise instead.
  7. IAAAffine. Use Affine instead.
  8. IAACropAndPad. Use CropAndPad instead.
  9. IAAEmboss. Use Emboss instead.
  10. IAAFliplr. Use HorizontalFlip instead.
  11. IAAFlipud. Use VerticalFlip instead.
  12. IAAPerspective. Use Perspective instead.
  13. IAAPiecewiseAffine. Use PiecewiseAffine instead.
  14. IAASharpen. Use Sharpen instead.
  15. IAASuperpixels. Use Superpixels instead.

Other deprecated functionality

  • Removed eps parameter in RandomGamma
  • Removed lambda_transformsin serialization.from_dict function.

Minor changes and Bug Fixes