SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1911.08287 · 2019

Distance-IoU Loss: Faster and Better Learning for Bounding Box Regression

arXiv · PDF · Open in the Atlas

Code that ran

17 of 25 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; 1 honoured the contract we drafted, 0 violated it and 12 have no contract verdict; 4 failures of our instrument; 8 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/1911.08287.json · badge: /api/ran/1911.08287.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
Zzh-tju/CIoU canonical (classifier label)
classifier basis: classifier_2025
0 ran · 2 no recorded run
grifon-239/diploma community (classifier label)
classifier basis not recorded on the link
11 ran · 4 no recorded run
copy not recorded community
not in the paper's declared repositories
3 ran · 1 no recorded run
symoon94/YOLO-keras community (classifier label)
classifier basis not recorded on the link
2 ran · 1 no recorded run
lilanxiao/Rotated_IoU reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
block Ran
ran on a synthesized input
grifon-239/diploma/common/backbones/efficientnet.py
code served (permissive licence) · get_code("1f6b117f42a0ded5")
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 KerasTensor. 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 tensorflow as tf
from tensorflow.keras.layers import Input
from tensorflow.keras import backend as K

# Set up a minimal input tensor
# The function expects inputs to be a tensor with shape (batch, height, width, channels)
# batch=2, height=4, width=3, channels=32
inputs = tf.keras.Input(shape=(4, 3, 32))

# Create a custom activation function that matches the swish signature
def swish(x):
    if K.backend() == 'tensorflow':
        try:
            return K.tf.nn.swish(x)
        except AttributeError:
            pass
    return x * K.sigmoid(x)

# Build the ARGS dictionary with all parameters
ARGS = {
    'inputs': inputs,
    'activation_fn': swish,
    'drop_rate': 0.1,
    'name': 'block_test_',
    'filters_in': 32,
    'filters_out': 16,
    'kernel_size': 3,
    'strides': 1,
    'expand_ratio': 1,
    'se_ratio': 0.25,
    'id_skip': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type KerasTensor — a KerasTensor output has no array shape of its own; none is 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
box2corners_th Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lilanxiao/Rotated_IoU/oriented_iou_loss.py
code served (permissive licence) · get_code("e86bd8530459c52b")
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 4, dtype family float, shape (2, 4, 4, 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 a valid box tensor with shape (B, N, 5)
# B=2 (batch size), N=4 (number of boxes), 5 features: x, y, w, h, alpha
box = torch.randn(2, 4, 5)

# Ensure reasonable values for width and height (positive)
box[..., 2] = torch.abs(box[..., 2]) + 0.5  # w
box[..., 3] = torch.abs(box[..., 3]) + 0.5  # h
# alpha can be any value (angle in radians)

ARGS = {
    "box": box,
}
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 4, dtype family float, shape (2, 4, 4, 2) — shape (2, 4, 4, 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
box_diou Ran
ran on a synthesized input
grifon-239/diploma/yolo2/loss.py
code served (permissive licence) · get_code("f1144ff6c0ba5dcd")
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 EagerTensor, ndim 5, dtype family float, shape (2, 3, 4, 2, 1) 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 tensorflow as tf
import numpy as np

# Create small tensors with shape (batch, feat_w, feat_h, anchor_num, 4)
batch_size = 2
feat_w = 3
feat_h = 4
anchor_num = 2

# Ground truth boxes: xywh format
b_true = tf.constant(
    np.random.rand(batch_size, feat_w, feat_h, anchor_num, 4).astype(np.float32) * 10 + 1,
    dtype=tf.float32
)

# Predicted boxes: xywh format
b_pred = tf.constant(
    np.random.rand(batch_size, feat_w, feat_h, anchor_num, 4).astype(np.float32) * 10 + 1,
    dtype=tf.float32
)

ARGS = {
    "b_true": b_true,
    "b_pred": b_pred,
    "use_ciou": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 5, dtype family float, shape (2, 3, 4, 2, 1) — shape (2, 3, 4, 2, 1) 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
box_giou Ran
ran on a synthesized input
grifon-239/diploma/yolo2/loss.py
code served (permissive licence) · get_code("ae7bb59e3e00b67f")
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 EagerTensor, ndim 5, dtype family float, shape (2, 3, 4, 2, 1) 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 tensorflow as tf
import numpy as np

# Set seeds for reproducibility
np.random.seed(0)
tf.random.set_seed(0)

# Create small tensors with shape (batch, feat_w, feat_h, anchor_num, 4)
# Using distinct dimensions: batch=2, feat_w=3, feat_h=4, anchor_num=2, coords=4 (xywh)
batch_size = 2
feat_w = 3
feat_h = 4
anchor_num = 2
coord_dim = 4

# Ground truth boxes: random xywh coordinates
# x, y in range [0, 100], w, h in range [10, 50]
b_true_data = np.random.uniform(0, 100, (batch_size, feat_w, feat_h, anchor_num, 2)).astype(np.float32)
b_true_wh = np.random.uniform(10, 50, (batch_size, feat_w, feat_h, anchor_num, 2)).astype(np.float32)
b_true = np.concatenate([b_true_data, b_true_wh], axis=-1)
b_true = tf.constant(b_true, dtype=tf.float32)

# Predicted boxes: similar distribution but slightly perturbed
b_pred_data = np.random.uniform(0, 100, (batch_size, feat_w, feat_h, anchor_num, 2)).astype(np.float32)
b_pred_wh = np.random.uniform(10, 50, (batch_size, feat_w, feat_h, anchor_num, 2)).astype(np.float32)
b_pred = np.concatenate([b_pred_data, b_pred_wh], axis=-1)
b_pred = tf.constant(b_pred, dtype=tf.float32)

ARGS = {
    "b_true": b_true,
    "b_pred": b_pred,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 5, dtype family float, shape (2, 3, 4, 2, 1) — shape (2, 3, 4, 2, 1) 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
box_iou Ran
ran on a synthesized input
grifon-239/diploma/yolo3/loss.py
code served (permissive licence) · get_code("a432a967aa4de172")
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 EagerTensor, ndim 3, dtype family float, shape (2, 3, 5) 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 tensorflow as tf
import numpy as np

# Set random seed for reproducibility
tf.random.set_seed(0)
np.random.seed(0)

# Create small test tensors with shape (i1,...,iN, 4) for b1 and (j, 4) for b2
# Using xywh format (x, y, width, height)

# b1: shape (2, 3, 4) - batch of 2, with 3 boxes each, 4 coordinates (xywh)
b1_data = np.array([
    [[10.0, 20.0, 4.0, 6.0], [30.0, 40.0, 8.0, 10.0], [50.0, 60.0, 5.0, 5.0]],
    [[15.0, 25.0, 6.0, 8.0], [35.0, 45.0, 10.0, 12.0], [55.0, 65.0, 7.0, 7.0]]
], dtype=np.float32)
b1 = tf.constant(b1_data)

# b2: shape (5, 4) - 5 boxes, 4 coordinates (xywh)
b2_data = np.array([
    [10.0, 20.0, 4.0, 6.0],
    [11.0, 21.0, 4.0, 6.0],
    [30.0, 40.0, 8.0, 10.0],
    [100.0, 100.0, 2.0, 2.0],
    [50.0, 60.0, 5.0, 5.0]
], dtype=np.float32)
b2 = tf.constant(b2_data)

ARGS = {
    "b1": b1,
    "b2": b2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 3, dtype family float, shape (2, 3, 5) — shape (2, 3, 5) 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
channel_shuffle Ran
ran on a synthesized input
grifon-239/diploma/common/backbones/shufflenet.py
code served (permissive licence) · get_code("287a2f6bfef9fb01")
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 EagerTensor, ndim 4, dtype family float, shape (2, 4, 3, 6) 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 tensorflow as tf
import numpy as np
from tensorflow.keras import backend as K

# Create a small input tensor with channels_last format
# Shape: (batch, height, width, channels)
batch_size = 2
height = 4
width = 3
in_channels = 6
groups = 2

# Create input tensor
x_np = np.random.randn(batch_size, height, width, in_channels).astype(np.float32)
x = tf.constant(x_np)

ARGS = {
    "x": x,
    "groups": groups
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 4, dtype family float, shape (2, 4, 3, 6) — shape (2, 4, 3, 6) 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
channel_shuffle Ran
ran on a synthesized input
grifon-239/diploma/common/backbones/shufflenet_v2.py
code served (permissive licence) · get_code("e73a09a558400c49")
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 EagerTensor, ndim 4, dtype family float, shape (2, 4, 3, 8) 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 tensorflow as tf
import numpy as np

# Create a small test tensor with shape (batch, height, width, channels)
# Using distinct sizes: batch=2, height=4, width=3, channels=8 (must be even for the /2 operation)
x_data = np.random.randn(2, 4, 3, 8).astype(np.float32)
x_tensor = tf.convert_to_tensor(x_data)

ARGS = {
    "x": x_tensor
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 4, dtype family float, shape (2, 4, 3, 8) — shape (2, 4, 3, 8) 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
correct_pad Ran
ran; our contract draft was wrong, not the code
grifon-239/diploma/common/backbones/efficientnet.py
code served (permissive licence) · get_code("372c139f6aad1ede")
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 tuple, ndim 2, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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
import numpy as np

# Create a minimal backend class that mimics Keras backend behavior
class MockBackend:
    def __init__(self, data_format='channels_last'):
        self._data_format = data_format
    
    def image_data_format(self):
        return self._data_format
    
    def int_shape(self, inputs):
        # Return the shape of the input tensor
        if isinstance(inputs, torch.Tensor):
            return tuple(inputs.shape)
        return inputs.shape

# Create a mock backend instance
backend = MockBackend(data_format='channels_last')

# Create a small input tensor with shape (batch, height, width, channels)
# Using channels_last format: batch=2, height=4, width=3, channels=5
torch.manual_seed(0)
inputs = torch.randn(2, 4, 3, 5)

# kernel_size can be an integer or tuple
kernel_size = 3

ARGS = {
    'backend': backend,
    'inputs': inputs,
    'kernel_size': kernel_size
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family int — a tuple output has no array shape of its own; none is stated
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
floatn Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from Zzh-tju/ultralytics-YOLOv3-Cluster-NMS
pointer only; the stored copy get_code serves, from Zzh-tju/ultralytics-YOLOv3-Cluster-NMS, is pointer only (licence: GPL-3.0) · get_code("ed702a199df9d0db")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

load_classes Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from Zzh-tju/ultralytics-YOLOv3-Cluster-NMS
pointer only; the stored copy get_code serves, from Zzh-tju/ultralytics-YOLOv3-Cluster-NMS, is pointer only (licence: GPL-3.0) · get_code("fa99a26b6ba8f205")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

relu Ran
ran on a synthesized input
grifon-239/diploma/common/backbones/mobilenet_v3.py
code served (permissive licence) · get_code("d304c126a9501818")
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 EagerTensor, 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 tensorflow as tf
import numpy as np

# The relu function takes a single parameter 'x' which should be a tensor-like input
# The function applies ReLU activation to it

# Create a simple input tensor with shape (2, 4) - batch size 2, dimension 4
x_input = tf.constant([[1.0, -2.0, 3.0, -4.0], 
                       [-1.0, 2.0, -3.0, 4.0]], dtype=tf.float32)

ARGS = {
    'x': x_input
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, 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
sigmoid_focal_loss Ran
ran on a synthesized input
grifon-239/diploma/yolo3/loss.py
code served (permissive licence) · get_code("119b2c846dc6f0bd")
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 EagerTensor, ndim 3, dtype family float, shape (2, 3, 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 tensorflow as tf
import numpy as np

# Set seeds for reproducibility
tf.random.set_seed(0)
np.random.seed(0)

# Create small test tensors
batch_size = 2
num_boxes = 3
num_classes = 4

# y_true: ground truth targets, shape (batch_size, num_boxes, num_classes)
# Binary labels (0 or 1)
y_true = tf.constant(
    np.random.randint(0, 2, size=(batch_size, num_boxes, num_classes)),
    dtype=tf.float32
)

# y_pred: predicted logits, shape (batch_size, num_boxes, num_classes)
# Raw logits (unbounded values)
y_pred = tf.constant(
    np.random.randn(batch_size, num_boxes, num_classes).astype(np.float32)
)

# Hyperparameters
gamma = 2.0
alpha = 0.25

ARGS = {
    "y_true": y_true,
    "y_pred": y_pred,
    "gamma": gamma,
    "alpha": alpha,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 3, dtype family float, shape (2, 3, 4) — shape (2, 3, 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
softmax_focal_loss Ran
ran on a synthesized input
grifon-239/diploma/yolo3/loss.py
code served (permissive licence) · get_code("a68a7dc12ee68dda")
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 EagerTensor, ndim 3, dtype family float, shape (2, 3, 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 tensorflow as tf
import numpy as np

# Set random seed for reproducibility
tf.random.set_seed(0)
np.random.seed(0)

# Create small tensors for testing
batch_size = 2
num_boxes = 3
num_classes = 4

# y_true: Ground truth targets with shape (batch_size, num_boxes, num_classes)
# One-hot encoded ground truth
y_true = tf.constant([
    [[1.0, 0.0, 0.0, 0.0],
     [0.0, 1.0, 0.0, 0.0],
     [0.0, 0.0, 1.0, 0.0]],
    [[0.0, 0.0, 0.0, 1.0],
     [1.0, 0.0, 0.0, 0.0],
     [0.0, 1.0, 0.0, 0.0]]
], dtype=tf.float32)

# y_pred: Predicted logits with shape (batch_size, num_boxes, num_classes)
y_pred = tf.constant([
    [[2.0, 1.0, 0.5, -1.0],
     [0.1, 2.5, 1.2, 0.3],
     [-0.5, 0.8, 1.5, 0.2]],
    [[1.0, 0.5, 0.2, 2.0],
     [2.1, 1.0, 0.5, 0.3],
     [0.3, 2.0, 1.1, 0.5]]
], dtype=tf.float32)

# gamma and alpha parameters
gamma = 2.0
alpha = 0.25

ARGS = {
    "y_true": y_true,
    "y_pred": y_pred,
    "gamma": gamma,
    "alpha": alpha
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 3, dtype family float, shape (2, 3, 4) — shape (2, 3, 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
swish Ran
ran on a synthesized input
grifon-239/diploma/common/backbones/efficientnet.py
code served (permissive licence) · get_code("d0b798e039050954")
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 EagerTensor, 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 tensorflow as tf
from tensorflow.keras import backend as K

# Set up a small input tensor
# The function takes a single tensor argument 'x'
# We'll create a small tensor with shape (2, 4) for batch_size=2, features=4
input_tensor = tf.constant([[1.0, 2.0, 3.0, 4.0],
                            [-1.0, -2.0, 0.5, 1.5]], dtype=tf.float32)

ARGS = {
    'x': input_tensor
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, 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
unique_config_sections Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from allanzelener/YAD2K
pointer only; the stored copy get_code serves, from allanzelener/YAD2K, is pointer only (licence: NOASSERTION) · get_code("3b40b5666c482d42")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

yolo_correct_boxes Ran
ran on a synthesized input
symoon94/YOLO-keras/common/yolo_postprocess_np.py
code served (permissive licence) · get_code("b4022b37b8e8571a")
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 ndarray, ndim 3, dtype family float, shape (2, 3, 9) 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 numpy as np

# Create small test data for YOLO box correction
# predictions shape: (batch, num_boxes, features)
# features are: [box_xy (2), box_wh (2), objectness (1), class_scores (N)]

batch_size = 2
num_boxes = 3
num_classes = 4

# Create predictions array with shape (batch, num_boxes, 2+2+1+4=9)
predictions = np.random.rand(batch_size, num_boxes, 2 + 2 + 1 + num_classes).astype('float32')
# Normalize box_xy and box_wh to reasonable ranges
predictions[..., :2] = np.random.uniform(0.2, 0.8, (batch_size, num_boxes, 2))  # box_xy
predictions[..., 2:4] = np.random.uniform(0.1, 0.5, (batch_size, num_boxes, 2))  # box_wh
predictions[..., 4] = np.random.uniform(0.5, 1.0, (batch_size, num_boxes))  # objectness
predictions[..., 5:] = np.random.uniform(0, 1, (batch_size, num_boxes, num_classes))  # class_scores

# Image shape (height, width) - original image dimensions
img_shape = (480, 640)

# Model image size (height, width) - size the model expects
model_image_size = (416, 416)

ARGS = {
    'predictions': predictions,
    'img_shape': img_shape,
    'model_image_size': model_image_size,
}
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 ndarray, ndim 3, dtype family float, shape (2, 3, 9) — shape (2, 3, 9) 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
yolo_handle_predictions Ran
ran on a synthesized input
symoon94/YOLO-keras/common/yolo_postprocess_np.py
code served (permissive licence) · get_code("04f922be59ea74eb")
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 tuple. 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

# Create small sample prediction data
# predictions shape: (batch_size, num_boxes, 5 + num_classes)
# Each box has: [x, y, w, h, confidence, class_probs...]
batch_size = 2
num_boxes = 10
num_classes = 3

predictions = np.random.rand(batch_size, num_boxes, 5 + num_classes).astype(np.float32)
# Set some reasonable confidence values
predictions[:, :, 4] = np.random.rand(batch_size, num_boxes) * 0.9 + 0.1

ARGS = {
    "predictions": predictions,
    "max_boxes": 5,
    "confidence": 0.1,
    "iou_threshold": 0.4
}
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 tuple — a tuple output has no array shape of its own; none is 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
box_iou Not yet run
unverified (harvested, no recorded run)
grifon-239/diploma/yolo2/loss.py
code served (permissive licence) · get_code("7ac8a3042b335d7e")
How it ran

no invocation recorded.

channel_split Not yet run
unverified (harvested, no recorded run)
grifon-239/diploma/common/backbones/shufflenet_v2.py
code served (permissive licence) · get_code("9e94788335c24fb8")
How it ran

no invocation recorded.

ciou Not yet run
unverified (harvested, no recorded run)
Zzh-tju/CIoU/layers/modules/multibox_loss.py
pointer only (licence: GPL-3.0) · get_code("3af5f4c25470e411")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, Zzh-tju/CIoU, 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. No invocation recorded.

diou Not yet run
unverified (harvested, no recorded run)
Zzh-tju/CIoU/layers/modules/multibox_loss.py
pointer only (licence: GPL-3.0) · get_code("7faff7636d39a255")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, Zzh-tju/CIoU, 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. No invocation recorded.

fire_module Not yet run
unverified (harvested, no recorded run)
grifon-239/diploma/common/backbones/squeezenet.py
code served (permissive licence) · get_code("af81841b8f314e60")
How it ran

no invocation recorded.

labels_to_class_weights Not yet run
unverified (harvested, no recorded run)
this paper's copy was not recorded; identical code first harvested from Zzh-tju/ultralytics-YOLOv3-Cluster-NMS
pointer only; the stored copy get_code serves, from Zzh-tju/ultralytics-YOLOv3-Cluster-NMS, is pointer only (licence: GPL-3.0) · get_code("25f32f40bc0cba2f")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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. No invocation recorded.

shuffle_unit Not yet run
unverified (harvested, no recorded run)
grifon-239/diploma/common/backbones/shufflenet_v2.py
code served (permissive licence) · get_code("6e40e2cdf90c6857")
How it ran

no invocation recorded.

yolo_head Not yet run
unverified (harvested, no recorded run)
symoon94/YOLO-keras/common/yolo_postprocess_np.py
code served (permissive licence) · get_code("3ef2976bd580516f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 25 samples lifted from this paper's linked repositories, 25 carry a function identity and 0 do not. Of the 25 distinct functions with an identity, 15 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 15 later) and 10 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
load_classes 6 other papers
1 dated earlier, 5 later
1804.02767 (2018-04)
YOLOv3: An Incremental Improvement
2004.10934 (2020-04)
YOLOv4: Optimal Speed and Accuracy of Object Detection
2005.03572 (2020-05)
Enhancing Geometric Factors in Model Learning and Inference for Object Detection and Instance Segmentation
and 3 more not named here
unique_config_sections 5 other papers
4 dated earlier, 1 later
1612.08242 (2016-12)
YOLO9000: Better, Faster, Stronger
1703.07402 (2017-03)
Simple Online and Realtime Tracking with a Deep Association Metric
1710.10891 (2017-10)
Open Set Logo Detection and Retrieval
and 2 more not named here
correct_pad 3 other papers
2 dated earlier, 1 later
1904.07305 (2019-04)
Automatic adaptation of object detectors to new domains using self-training
1905.11946 (2019-05)
EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
2004.10934 (2020-04)
YOLOv4: Optimal Speed and Accuracy of Object Detection
labels_to_class_weights 3 other papers
1 dated earlier, 2 later
1804.02767 (2018-04)
YOLOv3: An Incremental Improvement
2005.03572 (2020-05)
Enhancing Geometric Factors in Model Learning and Inference for Object Detection and Instance Segmentation
2009.02967 (2020-09)
Stochastic-YOLO: Efficient Probabilistic Object Detection under Dataset Shifts
floatn 2 other papers
1 dated earlier, 1 later
1804.02767 (2018-04)
YOLOv3: An Incremental Improvement
2005.03572 (2020-05)
Enhancing Geometric Factors in Model Learning and Inference for Object Detection and Instance Segmentation
box2corners_th 1 other paper
1 later
Ming_Deep_Dive_Into_Gradients_Better_Optimization_for_3D_Object_Detection_CVPR_2023_paper (2023 (year only))
Deep Dive into Gradients: Better Optimization for 3D Object Detection with Gradient-Corrected IoU Supervision
box_diou 1 other paper
1 later
2004.10934 (2020-04)
YOLOv4: Optimal Speed and Accuracy of Object Detection
box_giou 1 other paper
1 later
2004.10934 (2020-04)
YOLOv4: Optimal Speed and Accuracy of Object Detection
box_iou 1 other paper
1 later
2004.10934 (2020-04)
YOLOv4: Optimal Speed and Accuracy of Object Detection
box_iou 1 other paper
1 later
2004.10934 (2020-04)
YOLOv4: Optimal Speed and Accuracy of Object Detection
ciou 1 other paper
1 later
2005.03572 (2020-05)
Enhancing Geometric Factors in Model Learning and Inference for Object Detection and Instance Segmentation
diou 1 other paper
1 later
2005.03572 (2020-05)
Enhancing Geometric Factors in Model Learning and Inference for Object Detection and Instance Segmentation
sigmoid_focal_loss 1 other paper
1 later
2004.10934 (2020-04)
YOLOv4: Optimal Speed and Accuracy of Object Detection
softmax_focal_loss 1 other paper
1 later
2004.10934 (2020-04)
YOLOv4: Optimal Speed and Accuracy of Object Detection
swish 1 other paper
1 later
2004.10934 (2020-04)
YOLOv4: Optimal Speed and Accuracy of Object Detection

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-23.

Repositories linked to this paper

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

Abstract

Bounding box regression is the crucial step in object detection. In existing methods, while $\ell_n$-norm loss is widely adopted for bounding box regression, it is not tailored to the evaluation metric, i.e., Intersection over Union (IoU). Recently, IoU loss and generalized IoU (GIoU) loss have been proposed to benefit the IoU metric, but still suffer from the problems of slow convergence and inaccurate regression. In this paper, we propose a Distance-IoU (DIoU) loss by incorporating the normalized distance between the predicted box and the target box, which converges much faster in training than IoU and GIoU losses. Furthermore, this paper summarizes three geometric factors in bounding box regression, \ie, overlap area, central point distance and aspect ratio, based on which a Complete IoU (CIoU) loss is proposed, thereby leading to faster convergence and better performance. By incorporating DIoU and CIoU losses into state-of-the-art object detection algorithms, e.g., YOLO v3, SSD and Faster RCNN, we achieve notable performance gains in terms of not only IoU metric but also GIoU metric. Moreover, DIoU can be easily adopted into non-maximum suppression (NMS) to act as the criterion, further boosting performance improvement. The source code and trained models are available at https://github.com/Zzh-tju/DIoU.

For agents

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

get_harvested_code_for_paper("1911.08287")
get_code_for_paper("1911.08287")
have("1911.08287")

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

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

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

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

Connect an agent — have() is free.