Repository navigation
Summary
A patch release with one bug fix and one memory improvement.
Breaking changes
None.
Bug fixes
KeypointParamsno longer warns whenlabel_fieldsis set withoutlabel_mapping. The warning advised removinglabel_fields, which drops the keypoint labels.label_fieldskeeps labels aligned with keypoints;label_mappingis optional and only swaps labels such asleft_eyeandright_eyeon 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
Composeshare memory with the input. Copy the result before modifying it in place if the input must stay unchanged. Custompostprocesshooks on an empty pipeline can receive strided arrays; callnp.ascontiguousarraywhere 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 |