SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1612.00496 · 2016

3D Bounding Box Estimation Using Deep Learning and Geometry

arXiv · PDF · Open in the Atlas

Code that ran

19 of 27 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 15 have no contract verdict; 3 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/1612.00496.json · badge: /api/ran/1612.00496.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
skhadem/3D-BoundingBox community (classifier label)
classifier basis not recorded on the link
9 ran · 2 no recorded run
cersar/3D_detection community (classifier label)
classifier basis not recorded on the link
7 ran · 1 no recorded run
ZhixinLai/3D-detection-with-monocular-RGB-image reimplementation (classifier label)
classifier basis: classifier_2025
2 ran · 1 no recorded run
ruhyadi/yolo3d-lightning reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
smallcorgi/3D-Deepbox community (classifier label)
classifier basis not recorded on the link
0 ran · 3 no recorded run
ruhyadi/YOLO3D reimplementation (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
FunctionStatusWhere it lives
OrientationLoss Ran
ran; our contract draft was wrong, not the code
skhadem/3D-BoundingBox/torch_lib/Model.py
code served (permissive licence) · get_code("7f0d697208da9e63")
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 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)

# Analyze the function:
# - orient_batch: indexed by [batch_size, indexes], then [:, 1] and [:, 0]
#   So shape is (batch_size, num_classes, 2) where num_classes includes orientation predictions
# - orientGT_batch: same indexing pattern, shape (batch_size, num_classes, 2)
# - confGT_batch: max over dim=1, so shape (batch_size, num_classes, ...)

batch_size = 2
num_classes = 4

# orient_batch: predictions for each class, each with 2D orientation (sin, cos or similar)
orient_batch = torch.randn(batch_size, num_classes, 2)

# orientGT_batch: ground truth orientations for each class
orientGT_batch = torch.randn(batch_size, num_classes, 2)

# confGT_batch: confidence scores for each class (to select which class via argmax)
confGT_batch = torch.randn(batch_size, num_classes)

ARGS = {
    "orient_batch": orient_batch,
    "orientGT_batch": orientGT_batch,
    "confGT_batch": confGT_batch,
}
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 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
class_to_labels Ran
ran; our contract draft was wrong, not the code
ruhyadi/yolo3d-lightning/inference.py
pointer only (licence: NONE) · get_code("638326286ec1f55c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ruhyadi/yolo3d-lightning 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.

compute_anchors Ran
ran on a synthesized input
cersar/3D_detection/util/process_data.py
code served (permissive licence) · get_code("c9e703aa8a0e2b40")
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 list, ndim 2, dtype family float; 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 numpy as np

ARGS = {
    "angle": 2.5,
    "bin_num": 6,
    "overlap": 0.1,
}
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 list, ndim 2, dtype family float — a list 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
constraint_to_color Ran
ran on a synthesized input
skhadem/3D-BoundingBox/library/Plotting.py
code served (permissive licence) · get_code("1468fe9f0a353017")
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 1, 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
from enum import Enum

class cv_colors(Enum):
    RED = (0, 0, 255)
    GREEN = (0, 255, 0)
    BLUE = (255, 0, 0)
    PURPLE = (247, 44, 200)
    ORANGE = (44, 162, 247)
    MINT = (239, 255, 66)
    YELLOW = (2, 255, 250)

def constraint_to_color(constraint_idx):
    return {0: cv_colors.PURPLE.value, 1: cv_colors.ORANGE.value, 2: cv_colors.MINT.value, 3: cv_colors.YELLOW.value}[constraint_idx]

ARGS = {
    "constraint_idx": 0
}
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 1, 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
create_2d_box Ran
ran on a synthesized input
skhadem/3D-BoundingBox/library/Plotting.py
code served (permissive licence) · get_code("cddbf276f3a8bff3")
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

torch.manual_seed(0)

# Analyzing the function:
# - create_2d_box takes box_2d as parameter
# - box_2d is indexed as box_2d[0] and box_2d[1], suggesting it's a sequence of 2 elements
# - Each element (corner1_2d, corner2_2d) is indexed with [0] and [1], suggesting they are sequences with at least 2 elements
# - The elements appear to be 2D coordinates (x, y pairs)

# Creating a valid box_2d structure:
# box_2d should be a sequence of 2 corner points
# Each corner point should be a sequence of 2 coordinates (x, y)

box_2d = [
    (0, 0),      # corner1_2d: top-left corner
    (10, 20)     # corner2_2d: bottom-right corner
]

ARGS = {
    "box_2d": box_2d
}
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
create_corners Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ZhixinLai/3D-detection-with-monocular-RGB-image/math_2Dto3D.py
pointer only (licence: NONE) · get_code("ddd1724d77acef32")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ZhixinLai/3D-detection-with-monocular-RGB-image 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.

create_corners Ran
ran on a synthesized input
skhadem/3D-BoundingBox/library/Math.py
code served (permissive licence) · get_code("afc197044eaa3a7b")
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 list, ndim 2, dtype family float; 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 numpy as np

# Create dimension argument - a sequence of 3 values for [height, width, length]
dimension = [4.0, 3.0, 2.0]

# Create location argument - a sequence of 3 values for [x, y, z] offset
location = np.array([1.0, 2.0, 3.0])

# Create rotation matrix R - a 3x3 rotation matrix
# Using a simple rotation matrix (90 degrees around z-axis)
R = np.array([
    [0.0, -1.0, 0.0],
    [1.0, 0.0, 0.0],
    [0.0, 0.0, 1.0]
])

ARGS = {
    "dimension": dimension,
    "location": location,
    "R": R
}
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 list, ndim 2, dtype family float — a list 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
generate_bins Ran
ran on a synthesized input
skhadem/3D-BoundingBox/torch_lib/Dataset.py
code served (permissive licence) · get_code("20544057048f25d1")
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 1, dtype family float, shape (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 numpy as np

def generate_bins(bins):
    angle_bins = np.zeros(bins)
    interval = 2 * np.pi / bins
    for i in range(1, bins):
        angle_bins[i] = i * interval
    angle_bins += interval / 2
    return angle_bins

ARGS = {
    "bins": 8
}
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 1, dtype family float, shape (8,) — shape (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
get_P Ran
ran on a synthesized input
skhadem/3D-BoundingBox/library/File.py
code served (permissive licence) · get_code("b9279bc06f16dd87")
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 2, dtype family float, shape (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 numpy as np
import tempfile
import os

# Create a temporary calibration file with the required format
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_filename = temp_file.name

# Write calibration data in the expected format
# P2 line with 12 values (3x4 matrix flattened)
p2_values = "1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10.0 11.0 12.0"
temp_file.write(f"P2: {p2_values}\n")

# Also write P_rect_02 line for the get_P function
p_rect_values = "13.0 14.0 15.0 16.0 17.0 18.0 19.0 20.0 21.0 22.0 23.0 24.0"
temp_file.write(f"P_rect_02: {p_rect_values}\n")

temp_file.close()

ARGS = {
    'cab_f': temp_filename
}
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 2, dtype family float, shape (3, 4) — shape (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
get_R0 Ran
ran on a synthesized input
skhadem/3D-BoundingBox/library/File.py
code served (permissive licence) · get_code("1f764e46fb583db6")
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 2, dtype family float, shape (4, 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 numpy as np
import tempfile
import os

# Create a temporary calibration file with R0_rect data
temp_dir = tempfile.mkdtemp()
cab_file = os.path.join(temp_dir, "calib.txt")

# Write a calibration file with R0_rect line
with open(cab_file, 'w') as f:
    f.write("P0: 7.215377000000e+02 0.000000000000e+00 6.095593000000e+02 0.000000000000e+00 0.000000000000e+00 7.215377000000e+02 1.728540000000e+02 0.000000000000e+00 0.000000000000e+00 0.000000000000e+00 1.000000000000e+00 0.000000000000e+00\n")
    f.write("R0_rect: 9.999239e-01 9.837760e-03 -7.445717e-03 -9.869795e-03 9.999421e-01 -4.278459e-03 7.402069e-03 4.351614e-03 9.999631e-01\n")
    f.write("Tr_velo_to_cam: 7.533745e-03 -9.999714e-01 -6.166020e-04 -4.069766e-03 1.480249e-02 7.280733e-04 -9.998902e-01 -7.631618e-02 9.998621e-01 7.523790e-03 1.480755e-02 -2.717806e-01\n")

ARGS = {
    "cab_f": cab_file
}
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 2, dtype family float, shape (4, 4) — shape (4, 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
get_calibration_cam_to_image Ran
ran on a synthesized input
skhadem/3D-BoundingBox/library/File.py
code served (permissive licence) · get_code("f22188403e68fcce")
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 2, dtype family float, shape (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 numpy as np
import tempfile
import os

# Create a temporary calibration file with valid P2 matrix
temp_dir = tempfile.mkdtemp()
calibration_file = os.path.join(temp_dir, "calib.txt")

# Write a sample calibration file with P2 matrix (3x4)
# P2 matrix format: 12 space-separated float values
p2_values = "1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10.0 11.0 12.0"
with open(calibration_file, 'w') as f:
    f.write("P0: 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10.0 11.0 12.0\n")
    f.write(f"P2: {p2_values}\n")
    f.write("P3: 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10.0 11.0 12.0\n")

ARGS = {
    "cab_f": calibration_file
}
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 2, dtype family float, shape (3, 4) — shape (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
l2_normalize Ran
ran on a synthesized input
cersar/3D_detection/net/bbox_3D_net.py
code served (permissive licence) · get_code("1041f60d8e5cd0c9")
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 SymbolicTensor. 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
import numpy as np

# Create a small test tensor with shape (batch=2, height=3, width=4)
# The function applies l2_normalize along dim=2 (the width dimension)
x = tf.constant(np.random.randn(2, 3, 4).astype(np.float32))

ARGS = {
    "x": x
}
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 SymbolicTensor — a SymbolicTensor 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
orientation_loss Ran
ran on a synthesized input
cersar/3D_detection/layer/loss_func.py
code served (permissive licence) · get_code("8e973c133d8cddc1")
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 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 tensorflow as tf
import numpy as np

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

# Create small tensors with distinct dimensions
# Batch size: 2, sequence length: 4, feature dimension: 3
batch_size = 2
sequence_length = 4
feature_dim = 3

# y_true: shape (2, 4, 3)
# Contains orientation vectors - some with non-zero norm (>0.5), some near zero
y_true = tf.constant([
    [[0.8, 0.6, 0.1], [0.1, 0.1, 0.1], [0.7, 0.5, 0.3], [0.2, 0.2, 0.2]],
    [[0.9, 0.4, 0.2], [0.05, 0.05, 0.05], [0.6, 0.7, 0.1], [0.3, 0.3, 0.3]]
], dtype=tf.float32)

# y_pred: shape (2, 4, 3)
# Predicted orientation vectors (same shape as y_true)
y_pred = tf.constant([
    [[0.7, 0.65, 0.15], [0.2, 0.1, 0.05], [0.75, 0.48, 0.25], [0.25, 0.18, 0.1]],
    [[0.85, 0.45, 0.25], [0.1, 0.08, 0.02], [0.62, 0.68, 0.15], [0.28, 0.32, 0.25]]
], dtype=tf.float32)

ARGS = {
    "y_true": y_true,
    "y_pred": y_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 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
parse_annotation Ran
ran on a synthesized input
cersar/3D_detection/util/process_data.py
code served (permissive licence) · get_code("789803059794c9b6")
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 list, ndim 1, dtype family float; 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 os
import numpy as np
import tempfile
import shutil

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()
label_dir = os.path.join(temp_dir, "labels") + "/"
os.makedirs(label_dir, exist_ok=True)

# Create sample label files with proper format
label_content_1 = """car 0.1 0 1.5 100 150 200 250 1.5 1.6 3.5
person 0.2 1 0.8 50 75 150 300 0.5 1.7 0.8
"""

label_content_2 = """car 0.15 0.5 2.0 120 160 220 270 1.6 1.7 3.6
bicycle 0.05 0 0.5 30 40 80 120 0.6 2.0 1.0
"""

with open(os.path.join(label_dir, "image1.txt"), "w") as f:
    f.write(label_content_1)

with open(os.path.join(label_dir, "image2.txt"), "w") as f:
    f.write(label_content_2)

# Define class to index mapping
cls_to_ind = {
    'car': 0,
    'person': 1,
    'bicycle': 2,
    'truck': 3
}

ARGS = {
    'label_dir': label_dir,
    'cls_to_ind': cls_to_ind
}
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 list, ndim 1, dtype family float — a list 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
points3D_to_2D Ran
ran on a synthesized input
cersar/3D_detection/util/post_processing.py
code served (permissive licence) · get_code("00a376180dca2707")
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 2, dtype family float, shape (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 numpy as np

# Construct valid arguments for points3D_to_2D
# The function expects:
# - points3D: iterable of 3D points (will be reshaped to (-1, 1))
# - center: 3D point (array-like, shape (3,))
# - rot_M: rotation matrix (shape (3, 3))
# - cam_to_img: camera to image projection matrix (shape (3, 4))

# Create sample 3D points (batch of 2 points, each with 3 coordinates)
points3D = np.array([
    [1.0, 2.0, 3.0],
    [4.0, 5.0, 6.0]
])

# Create center point (3D coordinate)
center = np.array([[0.5], [0.5], [0.5]])

# Create a rotation matrix (3x3)
rot_M = np.array([
    [1.0, 0.0, 0.0],
    [0.0, 1.0, 0.0],
    [0.0, 0.0, 1.0]
])

# Create camera to image projection matrix (3x4)
# This maps homogeneous 4D camera coordinates to 3D image coordinates
cam_to_img = np.array([
    [500.0, 0.0, 320.0, 0.0],
    [0.0, 500.0, 240.0, 0.0],
    [0.0, 0.0, 1.0, 0.0]
])

ARGS = {
    'points3D': points3D,
    'center': center,
    'rot_M': rot_M,
    'cam_to_img': cam_to_img
}
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 2, dtype family float, shape (2, 2) — shape (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
process_obj_attributes Ran
ran on a synthesized input
cersar/3D_detection/util/process_data.py
code served (permissive licence) · get_code("300a092657842973")
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 list, ndim 1, dtype family float; 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 numpy as np

# Construct test objects with required structure
obj1 = {
    'name': 'car',
    'dims': np.array([1.5, 1.6, 3.2]),
    'theta_loc': 0.5,
}

obj2 = {
    'name': 'pedestrian',
    'dims': np.array([0.5, 0.6, 1.7]),
    'theta_loc': 2.5,
}

objs = [obj1, obj2]

# Construct dims_avg dictionary mapping class indices to average dimensions
dims_avg = {
    0: np.array([1.6, 1.7, 3.5]),  # car average dims
    1: np.array([0.6, 0.7, 1.8]),  # pedestrian average dims
}

# Construct class name to index mapping
cls_to_ind = {
    'car': 0,
    'pedestrian': 1,
}

ARGS = {
    'objs': objs,
    'dims_avg': dims_avg,
    'cls_to_ind': cls_to_ind,
    'bin_num': 6,
    'overlap': 0.1,
}
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 list, ndim 1, dtype family float — a list 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
project_3d_pt Ran
ran on a synthesized input
skhadem/3D-BoundingBox/library/Plotting.py
code served (permissive licence) · get_code("17e03d912e30b64c")
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 1, dtype family int, 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 numpy as np

# Create a small 3D point
pt = [10.5, 20.3, 15.7]

# Create a camera-to-image projection matrix (4x4 homography matrix)
# This is a typical calibration matrix that projects 3D points to 2D image coordinates
cam_to_img = np.array([
    [500.0, 0.0, 320.0, 0.0],
    [0.0, 500.0, 240.0, 0.0],
    [0.0, 0.0, 1.0, 0.0],
    [0.0, 0.0, 0.0, 1.0]
], dtype=np.float32)

# calib_file is optional and not used when cam_to_img is provided
calib_file = None

ARGS = {
    "pt": pt,
    "cam_to_img": cam_to_img,
    "calib_file": calib_file
}
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 1, dtype family int, 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
rotation_matrix Ran
ran, honoured the contract we drafted
ZhixinLai/3D-detection-with-monocular-RGB-image/math_2Dto3D.py
pointer only (licence: NONE) · get_code("502bf1a47f6d2dbe")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ZhixinLai/3D-detection-with-monocular-RGB-image 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.

solve_least_squre Ran
ran on a synthesized input
cersar/3D_detection/util/post_processing.py
code served (permissive licence) · get_code("c040f043890e7aa5")
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 1, dtype family float, shape (3,) 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

# Analyze the function:
# - W: matrix passed to np.linalg.svd, so needs to be a 2D array
#   The function uses np.eye(4, 3) * Sigma, which creates a 4x3 matrix
#   SVD of W produces U (mxm), Sigma (min(m,n)), VT (nxn)
#   For the math to work: W should be (4, 3) so SVD gives U(4x4), Sigma(3,), VT(3x3)
# - y: vector that gets multiplied with result of matrix operations
#   The final result is shape compatible with y
#   Given the 4x3 structure, y should be shape (4,)

np.random.seed(0)

# Create W as a 4x3 matrix (matches np.eye(4, 3) dimensionality)
W = np.random.randn(4, 3)

# Create y as a vector of length 4
y = np.random.randn(4)

ARGS = {
    "W": W,
    "y": y,
}
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 1, dtype family float, shape (3,) — shape (3,) 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
calc_location Not yet run
unverified (harvested, no recorded run)
ZhixinLai/3D-detection-with-monocular-RGB-image/math_2Dto3D.py
pointer only (licence: NONE) · get_code("e309a2bcb8e15116")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ZhixinLai/3D-detection-with-monocular-RGB-image 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. No invocation recorded.

calc_location Not yet run
unverified (harvested, no recorded run)
skhadem/3D-BoundingBox/library/Math.py
code served (permissive licence) · get_code("5925970513dfd261")
How it ran

no invocation recorded.

compute_anchors Not yet run
unverified (harvested, no recorded run)
smallcorgi/3D-Deepbox/data_processing.py
code served (permissive licence) · get_code("e52df4ac16b7de07")
How it ran

no invocation recorded.

init_points3D Not yet run
unverified (harvested, no recorded run)
cersar/3D_detection/util/post_processing.py
code served (permissive licence) · get_code("8defc632da790bab")
How it ran

no invocation recorded.

parse_annotation Not yet run
unverified (harvested, no recorded run)
smallcorgi/3D-Deepbox/data_processing.py
code served (permissive licence) · get_code("8dab7bb334c3722a")
How it ran

no invocation recorded.

plot3d Not yet run
unverified (harvested, no recorded run)
ruhyadi/YOLO3D/inference.py
pointer only (licence: NONE) · get_code("b805a0faf6764b6a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ruhyadi/YOLO3D 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. No invocation recorded.

plot_regressed_3d_bbox Not yet run
unverified (harvested, no recorded run)
skhadem/3D-BoundingBox/Run_no_yolo.py
code served (permissive licence) · get_code("822b9265b3b947b6")
How it ran

no invocation recorded.

prepare_input_and_output Not yet run
unverified (harvested, no recorded run)
smallcorgi/3D-Deepbox/data_processing.py
code served (permissive licence) · get_code("5e22f1d56f43321b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 27 samples lifted from this paper's linked repositories, 27 carry a function identity and 0 do not. Of the 27 distinct functions with an identity, 7 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 7 later) and 20 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
rotation_matrix 2 other papers
2 later
1904.01690 (2019-04)
Monocular 3D Object Detection Leveraging Accurate Proposals and Shape Reconstruction
2412.15208 (2024-12)
OpenEMMA: Open-Source Multimodal Model for End-to-End Autonomous Driving
OrientationLoss 1 other paper
1 later
2412.15208 (2024-12)
OpenEMMA: Open-Source Multimodal Model for End-to-End Autonomous Driving
calc_location 1 other paper
1 later
1904.01690 (2019-04)
Monocular 3D Object Detection Leveraging Accurate Proposals and Shape Reconstruction
create_corners 1 other paper
1 later
2412.15208 (2024-12)
OpenEMMA: Open-Source Multimodal Model for End-to-End Autonomous Driving
create_corners 1 other paper
1 later
1904.01690 (2019-04)
Monocular 3D Object Detection Leveraging Accurate Proposals and Shape Reconstruction
get_R0 1 other paper
1 later
2412.15208 (2024-12)
OpenEMMA: Open-Source Multimodal Model for End-to-End Autonomous Driving
get_calibration_cam_to_image 1 other paper
1 later
2412.15208 (2024-12)
OpenEMMA: Open-Source Multimodal Model for End-to-End Autonomous Driving

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

We present a method for 3D object detection and pose estimation from a single image. In contrast to current techniques that only regress the 3D orientation of an object, our method first regresses relatively stable 3D object properties using a deep convolutional neural network and then combines these estimates with geometric constraints provided by a 2D object bounding box to produce a complete 3D bounding box. The first network output estimates the 3D object orientation using a novel hybrid discrete-continuous loss, which significantly outperforms the L2 loss. The second output regresses the 3D object dimensions, which have relatively little variance compared to alternatives and can often be predicted for many object types. These estimates, combined with the geometric constraints on translation imposed by the 2D bounding box, enable us to recover a stable and accurate 3D object pose. We evaluate our method on the challenging KITTI object detection benchmark both on the official metric of 3D orientation estimation and also on the accuracy of the obtained 3D bounding boxes. Although conceptually simple, our method outperforms more complex and computationally expensive approaches that leverage semantic segmentation, instance level segmentation and flat ground priors and sub-category detection. Our discrete-continuous loss also produces state of the art results for 3D viewpoint estimation on the Pascal 3D+ dataset.

For agents

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

get_harvested_code_for_paper("1612.00496")
get_code_for_paper("1612.00496")
have("1612.00496")

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

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

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

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

Connect an agent — have() is free.