Skip to content

AlbumentationsX 2.7.2

Latest

Choose a tag to compare

@ternaus ternaus released this 04 Dec 10:06
f3a49f5

Summary

A patch release with one bug fix and one memory improvement.

Breaking changes

None.

Bug fixes

  • KeypointParams no longer warns when label_fields is set without label_mapping. The warning advised removing label_fields, which drops the keypoint labels. label_fields keeps labels aligned with keypoints; label_mapping is optional and only swaps labels such as left_eye and right_eye on flips. (#733, fixes #732)

Performance

  • A root A.Compose([]) returns the original NumPy image and mask without a full-size copy. For a 1080p strided RGB crop, the peak allocation drops from 6.2 MB to 144 B. Input validation and bounding-box filtering still run. (#717, refs #713)

Behavior change

  • Because of #717, the image and mask returned by an empty root Compose share memory with the input. Copy the result before modifying it in place if the input must stay unchanged. Custom postprocess hooks on an empty pipeline can receive strided arrays; call np.ascontiguousarray where a C-contiguous buffer is required.

Commits

PR Title
#717 Avoid copying NumPy images and masks in an empty Compose root
#733 fix(keypoints): stop warning when label_fields has no label_mapping
#734 chore(release): prepare 2.7.2