SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · Xu_Rethinking_Boundary_Discontinuity_Problem_for_Oriented_Object_Detection_CVPR_2024_paper · CVPR · 2024

Rethinking Boundary Discontinuity Problem for Oriented Object Detection

Hang Xu, Chenggang Yan, Feng Dai, Yike Ma, Xinyuan Liu, Haonan Xu, Zunjie Zhu

Open in the Atlas

Code that ran

9 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 4 failures of our instrument; 0 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/Xu_Rethinking_Boundary_Discontinuity_Problem_for_Oriented_Object_Detection_CVPR_2024_paper.json · badge: /api/ran/Xu_Rethinking_Boundary_Discontinuity_Problem_for_Oriented_Object_Detection_CVPR_2024_paper.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
hangxu-cv/cvpr24acm canonical (classifier label)
classifier basis: census
9 ran · 0 no recorded run
FunctionStatusWhere it lives
cal Ran
ran on a synthesized input
hangxu-cv/cvpr24acm/train_hrsc.py
code served (permissive licence) · get_code("a920ec664fcf55f8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    "epoch": 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
cal_line_length Ran
ran; our contract draft was wrong, not the code
hangxu-cv/cvpr24acm/DOTA_devkit/ImgSplit.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from CAPTAIN-WHU/DOTA_devkit, is pointer only (licence: NONE) · get_code("334c71c1848e108a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from CAPTAIN-WHU/DOTA_devkit, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

choose_best_pointorder_fit_another Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hangxu-cv/cvpr24acm/DOTA_devkit/ImgSplit.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from CAPTAIN-WHU/DOTA_devkit, is pointer only (licence: NONE) · get_code("787051d64e55a326")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from CAPTAIN-WHU/DOTA_devkit, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

conv3x3 Ran
ran; our contract draft was wrong, not the code
hangxu-cv/cvpr24acm/nets/resnet_dcn_DFPN.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from lixiaotong97/DSU, is pointer only (licence: NONE) · get_code("fac5364e2f53c6db")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from lixiaotong97/DSU, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

kfiou_loss Ran
ran on a synthesized input
hangxu-cv/cvpr24acm/utils/Gaussian_focal_loss.py
code served (permissive licence) · get_code("202241cd2d44005c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create sample bounding boxes in (w, h, r) format
# Shape: (N, 3) where N=2 for batch size
# w, h are width/height, r is rotation angle in radians
pred_box = torch.tensor([
    [4.0, 3.0, 0.5],
    [5.0, 2.0, 1.2]
], dtype=torch.float32)

target_box = torch.tensor([
    [4.2, 3.1, 0.45],
    [5.1, 2.1, 1.25]
], dtype=torch.float32)

ARGS = {
    'pred_box': pred_box,
    'target_box': target_box,
    'fun': 'ln',
    'eps': 1e-6
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
nmsbynamedict Ran
ran on a synthesized input
hangxu-cv/cvpr24acm/DOTA_devkit/ResultMerge.py
code served (permissive licence) · get_code("96fa0ca68973d7eb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

def dummy_nms(boxes, thresh):
    """
    Dummy NMS function that keeps boxes with high confidence.
    Takes an array of boxes and returns indices to keep.
    """
    if len(boxes) == 0:
        return []
    # Simple mock: keep every other box or based on some criterion
    return [i for i in range(len(boxes)) if i % 2 == 0 or i == len(boxes) - 1]

# Construct test data
nameboxdict = {
    "image1.jpg": [
        [10.0, 20.0, 100.0, 150.0],
        [15.0, 25.0, 110.0, 160.0],
        [200.0, 300.0, 400.0, 500.0]
    ],
    "image2.jpg": [
        [5.0, 5.0, 50.0, 50.0],
        [8.0, 8.0, 55.0, 55.0]
    ]
}

nms_func = dummy_nms
thresh_value = 0.5

ARGS = {
    "nameboxdict": nameboxdict,
    "nms": nms_func,
    "thresh": thresh_value
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
postprocess Ran
ran on a synthesized input
hangxu-cv/cvpr24acm/utils/Gaussian_focal_loss.py
code served (permissive licence) · get_code("561a35444adf0510")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small distance tensor (batch=2, features=4)
distance = torch.rand(2, 4) * 10  # Random distances in [0, 10)

# Test with different function options
fun = 'log1p'
tau = 1.5

ARGS = {
    'distance': distance,
    'fun': fun,
    'tau': tau,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
py_cpu_nms Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hangxu-cv/cvpr24acm/DOTA_devkit/ResultMerge.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Anymake/DRN_CVPR2020, is pointer only (licence: GPL-2.0) · get_code("5502a789c2da0e5e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Anymake/DRN_CVPR2020, and GPL-2.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

xy_wh_r_2_xy_sigma Ran
ran on a synthesized input
hangxu-cv/cvpr24acm/utils/Gaussian_focal_loss.py
code served (permissive licence) · get_code("ef4701e77a3c9360")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (2, 2, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function takes whr: a tensor with shape (N, 3) where:
# - Last dimension has size 3 (width, height, rotation)
# - N can be any batch size
# Create a small tensor with shape (2, 3) representing 2 bounding boxes
# Each row: [width, height, rotation_angle]
whr = torch.tensor([
    [4.0, 5.0, 0.5],
    [3.0, 6.0, 1.2]
], dtype=torch.float32)

ARGS = {
    'whr': whr
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 2, 2) — shape (2, 2, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 1 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
conv3x3 686 other papers
548 dated earlier, 28 later, 110 same year, order not determinable · 31 only as an assembly brick
1406.2661 (2014-06)
Generative Adversarial Networks
1409.0575 (2014-09)
ImageNet Large Scale Visual Recognition Challenge
1412.6572 (2014-12)
Explaining and Harnessing Adversarial Examples
and 683 more not named here
py_cpu_nms 9 other papers
8 dated earlier, 1 same year, order not determinable
1506.01497 (2015-06)
Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks
1812.00155 (2018-12)
Learning RoI Transformer for Detecting Oriented Objects in Aerial Images
1905.00641 (2019-05)
RetinaFace: Single-stage Dense Face Localisation in the Wild
and 6 more not named here
cal_line_length 3 other papers
3 dated earlier
1711.10398 (2017-11)
DOTA: A Large-scale Dataset for Object Detection in Aerial Images
1812.00155 (2018-12)
Learning RoI Transformer for Detecting Oriented Objects in Aerial Images
2302.01392 (2023-02)
Multi-modal Gated Mixture of Local-to-Global Experts for Dynamic Image Fusion
choose_best_pointorder_fit_another 3 other papers
3 dated earlier
1711.10398 (2017-11)
DOTA: A Large-scale Dataset for Object Detection in Aerial Images
1812.00155 (2018-12)
Learning RoI Transformer for Detecting Oriented Objects in Aerial Images
2302.01392 (2023-02)
Multi-modal Gated Mixture of Local-to-Global Experts for Dynamic Image Fusion

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Oriented object detection has been developed rapidly in the past few years, where rotation equivariance is crucial for detectors to predict rotated boxes. It is expected that the prediction can maintain the corresponding rotation when objects rotate, but severe mutation in angular prediction is sometimes observed when objects rotate near the boundary angle, which is well-known boundary discontinuity problem. The problem has been long believed to be caused by the sharp loss increase at the angular boundary, and widely used joint-optim IoU-like methods deal with this problem by losssmoothing. However, we experimentally find that even stateof-the-art IoU-like methods actually fail to solve the problem. On further analysis, we find that the key to solution lies in encoding mode of the smoothing function rather than in joint or independent optimization. In existing IoU-like methods, the model essentially attempts to fit the angular relationship between box and object, where the break point at angular boundary makes the predictions highly unstable. To deal with this issue, we propose a dual-optimization paradigm for angles. We decouple reversibility and joint-optim from single smoothing function into two distinct entities, which for the first time achieves the objectives of both correcting angular boundary and blending angle with other parameters. Extensive experiments on multiple datasets show that boundary discontinuity problem is well-addressed. Moreover, typical IoU-like methods are improved to the same level without obvious performance gap. The code is available at https://github.com/hangxu-cv/cvpr24acm.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("Xu_Rethinking_Boundary_Discontinuity_Problem_for_Oriented_Object_Detection_CVPR_2024_paper")
get_code_for_paper("Xu_Rethinking_Boundary_Discontinuity_Problem_for_Oriented_Object_Detection_CVPR_2024_paper")
have("Xu_Rethinking_Boundary_Discontinuity_Problem_for_Oriented_Object_Detection_CVPR_2024_paper")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/Xu_Rethinking_Boundary_Discontinuity_Problem_for_Oriented_Object_Detection_CVPR_2024_paper.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/Xu_Rethinking_Boundary_Discontinuity_Problem_for_Oriented_Object_Detection_CVPR_2024_paper.svg)](https://syntology.ai/paper/Xu_Rethinking_Boundary_Discontinuity_Problem_for_Oriented_Object_Detection_CVPR_2024_paper)

Connect an agent — have() is free.