Skip to main content
← Lab

flipoob

confirmedupstream bugPython · albumentationsSystems & data structuresJuly 25, 2026

the question

Does albumentations reflect flipped keypoints in the same coordinate frame as bounding boxes?

what came out

albumentations geometric/functional.py reflects keypoints about cols-1/rows-1 under HorizontalFlip/VerticalFlip while boxes and keypoint scale/pad use the continuous cols/rows frame. A flipped keypoint lands 1px off its box corner, and an interior point at x=99.5 reflects to -0.5, out of the width-100 image, where correct is 0.5.

method & receipts

  • Result: confirmed
  • Reproducible one script re-runs the whole thing from scratch.
  • Tested — a correctness/benchmark suite ships alongside the code.

→ read the code and re-run it

github.com/v-code01/flipoob