Skip to content

fix box iou rotated - #2964

Open
grimoire wants to merge 2 commits into
open-mmlab:mainfrom
grimoire:fix-2933
Open

fix box iou rotated#2964
grimoire wants to merge 2 commits into
open-mmlab:mainfrom
grimoire:fix-2933

Conversation

@grimoire

Copy link
Copy Markdown
Member

@grimoire
grimoire marked this pull request as draft October 14, 2023 08:18
@grimoire
grimoire marked this pull request as ready for review October 18, 2023 02:17
yuki-inaho added a commit to yuki-inaho/mmcv that referenced this pull request May 29, 2026
Port open-mmlab#2964 (fixes open-mmlab#2933): the Graham-scan angular sort compared raw
cross-products whose magnitude scales with point distance, mis-ordering hull points
and yielding wrong rotated-polygon area / IoU. Normalize each vector by its length
(sqrt(dot)+1e-6) before the cross-product on both the CUDA/MUSA and CPU paths, and
store dist as magnitude. Rotated IoU feeds the RTMDet-OBB assigner (positive-sample
selection + loss weighting) and nms_rotated, so this improves training quality.
Adapted to the fork's `__CUDACC__ || __MUSACC__` guard.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant