SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2112.04628 · 2021

Learning Auxiliary Monocular Contexts Helps Monocular 3D Object Detection

arXiv · PDF · Open in the Atlas

Code that ran

13 of 15 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; 2 honoured the contract we drafted, 1 violated it and 2 have no contract verdict; 8 failures of our instrument; 2 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/2112.04628.json · badge: /api/ran/2112.04628.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
Xianpeng919/MonoCon canonical (classifier label)
classifier basis: census
11 ran · 1 no recorded run
2gunsu/monocon-pytorch community (classifier label)
classifier basis not recorded on the link
2 ran · 1 no recorded run
FunctionStatusWhere it lives
average_precision Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Xianpeng919/MonoCon/monocon/mmdet3d/core/evaluation/indoor_eval.py
pointer only (licence: NONE) · get_code("8d35a41368d8dd47")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Xianpeng919/MonoCon 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
Xianpeng919/MonoCon/monocon/mmdet3d/models/backbones/dla.py
pointer only (licence: NONE); 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: GitHub detected no licence in this paper's repository, Xianpeng919/MonoCon 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.

eval_det_cls Ran
ran; our contract draft was wrong, not the code
Xianpeng919/MonoCon/monocon/mmdet3d/core/evaluation/indoor_eval.py
pointer only (licence: NONE) · get_code("2283234eb1863906")
How it ran

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

fast_hist Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Xianpeng919/MonoCon/monocon/mmdet3d/core/evaluation/seg_eval.py
pointer only (licence: NONE) · get_code("7f5f5b45cabc7d55")
How it ran

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

gaussian2D Ran
ran, honoured the contract we drafted
Xianpeng919/MonoCon/mmdetection-2.11.0-extra-monocon/mmdet/models/utils/gaussian_target.py
pointer only (licence: NONE) · get_code("8e0fe6a5879c5be2")
How it ran

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

gaussian_radius Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Xianpeng919/MonoCon/mmdetection-2.11.0-extra-monocon/mmdet/models/utils/gaussian_target.py
pointer only (licence: NONE) · get_code("8750f1686af02600")
How it ran

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

gen_gaussian_target Ran
ran; our contract draft was wrong, not the code
Xianpeng919/MonoCon/mmdetection-2.11.0-extra-monocon/mmdet/models/utils/gaussian_target.py
pointer only (licence: NONE) · get_code("63ff0ac2249fbb30")
How it ran

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

generate_record Ran
ran; our contract draft was wrong, not the code
Xianpeng919/MonoCon/monocon/create_data_tools_monocon/data_converter/kitti_converter.py
pointer only (licence: NONE) · get_code("a589d35b09bfb8db")
How it ran

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

get_acc Ran
ran, honoured the contract we drafted
Xianpeng919/MonoCon/monocon/mmdet3d/core/evaluation/seg_eval.py
pointer only (licence: NONE) · get_code("fcd32f0316ac7cac")
How it ran

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

get_model_url Ran
ran; our contract draft was wrong, not the code
Xianpeng919/MonoCon/monocon/mmdet3d/models/backbones/dla.py
pointer only (licence: NONE) · get_code("3c9867a84d7c18d9")
How it ran

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

per_class_iou Ran
ran, violated the contract we drafted
Xianpeng919/MonoCon/monocon/mmdet3d/core/evaluation/seg_eval.py
pointer only (licence: NONE) · get_code("4018d47e1ea5a2ce")
How it ran

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

reduce_loss Ran
ran on a synthesized input
2gunsu/monocon-pytorch/losses/utils.py
code served (permissive licence) · get_code("19a94ffb350de071")
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
import torch.nn.functional as F

torch.manual_seed(0)

# Create a small loss tensor (batch of 2 samples)
loss_tensor = torch.randn(2, 4)

# Test with different reduction modes
ARGS = {
    'loss': loss_tensor,
    'reduction': 'mean'
}
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
weight_reduce_loss Ran
ran on a synthesized input
2gunsu/monocon-pytorch/losses/utils.py
code served (permissive licence) · get_code("d02fb39bb36bc9f7")
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
import torch.nn.functional as F

torch.manual_seed(0)

# Create a small loss tensor (batch size 2, 4 elements)
loss_tensor = torch.tensor([[0.5, 0.3, 0.2, 0.1], [0.4, 0.6, 0.1, 0.2]], dtype=torch.float32)

# Create a weight tensor with same shape
weight_tensor = torch.tensor([[1.0, 2.0, 0.5, 1.5], [1.0, 1.0, 1.0, 1.0]], dtype=torch.float32)

# avg_factor as a float
avg_factor_value = 8.0

ARGS = {
    'loss': loss_tensor,
    'weight': weight_tensor,
    'reduction': 'mean',
    'avg_factor': None
}
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
eval_map_recall Not yet run
unverified (harvested, no recorded run)
Xianpeng919/MonoCon/monocon/mmdet3d/core/evaluation/indoor_eval.py
pointer only (licence: NONE) · get_code("3e68c67f05177852")
How it ran

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

weighted_loss Not yet run
unverified (harvested, no recorded run)
2gunsu/monocon-pytorch/losses/utils.py
code served (permissive licence) · get_code("768c0597a766ae51")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 1 the same month, 8 later) and 7 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
346 dated earlier, 10 the same month, 324 later, 6 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
average_precision 5 other papers
1 dated earlier, 4 later
2104.10956 (2021-04)
FCOS3D: Fully Convolutional One-Stage Monocular 3D Object Detection
2210.05593 (2022-10)
Prototypical VoteNet for Few-Shot 3D Point Cloud Object Detection
2311.01682 (2023-11)
Flow-Based Feature Fusion for Vehicle-Infrastructure Cooperative 3D Object Detection
and 2 more not named here
eval_det_cls 5 other papers
1 dated earlier, 4 later
2104.10956 (2021-04)
FCOS3D: Fully Convolutional One-Stage Monocular 3D Object Detection
2210.05593 (2022-10)
Prototypical VoteNet for Few-Shot 3D Point Cloud Object Detection
2311.01682 (2023-11)
Flow-Based Feature Fusion for Vehicle-Infrastructure Cooperative 3D Object Detection
and 2 more not named here
eval_map_recall 5 other papers
1 dated earlier, 4 later
2104.10956 (2021-04)
FCOS3D: Fully Convolutional One-Stage Monocular 3D Object Detection
2210.05593 (2022-10)
Prototypical VoteNet for Few-Shot 3D Point Cloud Object Detection
2311.01682 (2023-11)
Flow-Based Feature Fusion for Vehicle-Infrastructure Cooperative 3D Object Detection
and 2 more not named here
get_model_url 4 other papers
1 dated earlier, 3 later
2107.13774 (2021-07)
Geometry Uncertainty Projection Network for Monocular 3D Object Detection
2203.10981 (2022-03)
MonoDTR: Monocular 3D Object Detection with Depth-Aware Transformer
2207.08531 (2022-07)
DID-M3D: Decoupling Instance Depth for Monocular 3D Object Detection
and 1 more not named here
fast_hist 2 other papers
1 dated earlier, 1 later
2104.10956 (2021-04)
FCOS3D: Fully Convolutional One-Stage Monocular 3D Object Detection
2507.00603 (2025-07)
World4Drive: End-to-End Autonomous Driving via Intention-aware Physical Latent World Model
get_acc 2 other papers
1 dated earlier, 1 later
2104.10956 (2021-04)
FCOS3D: Fully Convolutional One-Stage Monocular 3D Object Detection
2507.00603 (2025-07)
World4Drive: End-to-End Autonomous Driving via Intention-aware Physical Latent World Model
per_class_iou 2 other papers
1 dated earlier, 1 later
2104.10956 (2021-04)
FCOS3D: Fully Convolutional One-Stage Monocular 3D Object Detection
2507.00603 (2025-07)
World4Drive: End-to-End Autonomous Driving via Intention-aware Physical Latent World Model

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

Monocular 3D object detection aims to localize 3D bounding boxes in an input single 2D image. It is a highly challenging problem and remains open, especially when no extra information (e.g., depth, lidar and/or multi-frames) can be leveraged in training and/or inference. This paper proposes a simple yet effective formulation for monocular 3D object detection without exploiting any extra information. It presents the MonoCon method which learns Monocular Contexts, as auxiliary tasks in training, to help monocular 3D object detection. The key idea is that with the annotated 3D bounding boxes of objects in an image, there is a rich set of well-posed projected 2D supervision signals available in training, such as the projected corner keypoints and their associated offset vectors with respect to the center of 2D bounding box, which should be exploited as auxiliary tasks in training. The proposed MonoCon is motivated by the Cramer-Wold theorem in measure theory at a high level. In implementation, it utilizes a very simple end-to-end design to justify the effectiveness of learning auxiliary monocular contexts, which consists of three components: a Deep Neural Network (DNN) based feature backbone, a number of regression head branches for learning the essential parameters used in the 3D bounding box prediction, and a number of regression head branches for learning auxiliary contexts. After training, the auxiliary context regression branches are discarded for better inference efficiency. In experiments, the proposed MonoCon is tested in the KITTI benchmark (car, pedestrain and cyclist). It outperforms all prior arts in the leaderboard on car category and obtains comparable performance on pedestrian and cyclist in terms of accuracy. Thanks to the simple design, the proposed MonoCon method obtains the fastest inference speed with 38.7 fps in comparisons

For agents

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

get_harvested_code_for_paper("2112.04628")
get_code_for_paper("2112.04628")
have("2112.04628")

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

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

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

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

Connect an agent — have() is free.