Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

336 B
Raw Blame

mean_iou_bbox converts float16 and bfloat16 xywh and cxcywh boxes to corners in float32. The corners used to be rounded in the box dtype first: in float16, 289.5 + 22.375 became 312.0, which moved the IoU of that pair from 0.4994 to 0.5029, and a 1 px wide box at x = 2048 collapsed to zero width and raised AssertionError.