Papers › The KFIoU Loss for Rotated Object Detection

The KFIoU Loss for Rotated Object Detection

29 Jan 2022arXiv:2201.12558archive 2025-07-28

Xue Yang, Yue Zhou, Gefan Zhang, Jirui Yang, Wentao Wang, Junchi Yan, Xiaopeng Zhang, Qi Tian

Differing from the well-developed horizontal object detection area whereby the computing-friendly IoU based loss is readily adopted and well fits with the detection metrics. In contrast, rotation detectors often involve a more complicated loss based on SkewIoU which is unfriendly to gradient-based training. In this paper, we propose an effective approximate SkewIoU loss based on Gaussian modeling and Gaussian product, which mainly consists of two items. The first term is a scale-insensitive center point loss, which is used to quickly narrow the distance between the center points of the two bounding boxes. In the distance-independent second term, the product of the Gaussian distributions is adopted to inherently mimic the mechanism of SkewIoU by its definition, and show its alignment with the SkewIoU loss at trend-level within a certain distance (i.e. within 9 pixels). This is in contrast to recent Gaussian modeling based rotation detectors e.g. GWD loss and KLD loss that involve a human-specified distribution distance metric which require additional hyperparameter tuning that vary across datasets and detectors. The resulting new loss called KFIoU loss is easier to implement and works better compared with exact SkewIoU loss, thanks to its full differentiability and ability to handle the non-overlapping cases. We further extend our technique to the 3-D case which also suffers from the same issues as 2-D. Extensive results on various public datasets (2-D/3-D, aerial/text/face images) with different base detectors show the effectiveness of our approach.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2201.12558")

Code

Syntology Ran 3 of 7 code samples harvested from 2 repositories linked to this paper; 4 have no recorded run. Of those that ran: 1 ran · fixture could not drive it; 2 ran with no contract checked.

By repository: official repository: 7 samples from 2 repositories, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Jittor/JDet officialmentioned in papermentioned on GitHubApache-2.0 report
yangxue0827/RotationDetection officialmentioned in papermentioned on GitHubtf report
open-mmlab/mmrotate mentioned in paperpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

7 samples harvested; 3 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · fixture could not drive it
2ran
4unverified

Licence: 0 of the 7 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Loss yangxue0827/RotationDetection/alpharotate/libs/models/losses/losses_kfiou.py official repository ran Apache-2.0 (permissive) · 0699e01c78ee6d82 · report
LossKF yangxue0827/RotationDetection/alpharotate/libs/models/losses/losses_kfiou.py official repository ran Apache-2.0 (permissive) · 421c2975cdf18aa1 · report
iou_rotate_calculate2 yangxue0827/RotationDetection/alpharotate/libs/models/losses/losses_kfiou.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · da84e065b468cfe0 · report
backward_convert yangxue0827/RotationDetection/alpharotate/libs/models/losses/losses_kfiou.py official repository unverified Apache-2.0 (permissive) · b5addcc393d1386e · report
coordinate_present_convert yangxue0827/RotationDetection/alpharotate/libs/models/losses/losses_kfiou.py official repository unverified Apache-2.0 (permissive) · 61ebb77db4a0968f · report
get_classes_by_name Jittor/JDet/python/jdet/config/constant.py official repository unverified Apache-2.0 (permissive) · 54f118f70ca040f9 · report
to_2tuple Jittor/JDet/python/jdet/models/backbones/lsknet.py official repository unverified Apache-2.0 (permissive) · 3516103014b49aca · report

Tasks

ObjectObject DetectionObject Detection In Aerial Imagesobject-detection

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

BASE

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections