SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2206.15398 · 2022

PolarFormer: Multi-camera 3D Object Detection with Polar Transformer

arXiv · PDF · Open in the Atlas

Code that ran

7 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 6 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/2206.15398.json · badge: /api/ran/2206.15398.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
fudan-zvg/polarformer canonical (classifier label)
classifier basis not recorded on the link
7 ran · 2 no recorded run
FunctionStatusWhere it lives
conv1x1 Ran
ran; our contract draft was wrong, not the code
fudan-zvg/polarformer/projects/mmdet3d_plugin/models/backbones/vovnet.py
code served (permissive licence) · get_code("c637c42a302bb63c")
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 torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'in_channels': 64,
    'out_channels': 128,
    'module_name': 'layer',
    'postfix': 'block1',
    'stride': 1,
    'groups': 1,
    'kernel_size': 1,
    'padding': 0
}
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 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
conv3x3 Ran
ran; our contract draft was wrong, not the code
fudan-zvg/polarformer/projects/mmdet3d_plugin/models/backbones/vovnet.py
code served (permissive licence) · get_code("303f4d3695ad18f1")
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 torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'in_channels': 3,
    'out_channels': 64,
    'module_name': 'layer',
    'postfix': '0',
    'stride': 1,
    'groups': 1,
    'kernel_size': 3,
    'padding': 1
}
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 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
inverse_sigmoid Ran
ran; our contract draft was wrong, not the code
fudan-zvg/polarformer/projects/mmdet3d_plugin/models/utils/polar_transformer.py
code served (permissive licence) · get_code("c12fa9dce0d5fd34")
How it ran

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

import torch

torch.manual_seed(0)

# Create a small tensor with values between 0 and 1 (valid sigmoid output range)
x = torch.tensor([[0.2, 0.5, 0.8, 0.1],
                   [0.9, 0.3, 0.7, 0.4]], dtype=torch.float32)

# Define arguments dictionary
ARGS = {
    'x': x,
    'eps': 1e-05
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
nchw_to_nlc Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
fudan-zvg/polarformer/projects/mmdet3d_plugin/models/utils/polar_transformer.py
code served (permissive licence) · get_code("f7a6c2f2d2956250")
How it ran

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

import torch

torch.manual_seed(0)

# Create a small NCHW tensor: [N=2, C=4, H=3, W=5]
x = torch.randn(2, 4, 3, 5)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 15, 4) — shape (2, 15, 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
nlc_to_nchw Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
fudan-zvg/polarformer/projects/mmdet3d_plugin/models/utils/polar_transformer.py
code served (permissive licence) · get_code("dff153b73a73c71b")
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, 5, 4, 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 torch
import numpy as np

torch.manual_seed(0)

# Construct a small [N, L, C] tensor where L = H * W
# Let's use N=2 (batch), H=4, W=3, so L=12, and C=5
N = 2
H = 4
W = 3
L = H * W
C = 5

x = torch.randn(N, L, C)
hw_shape = [H, W]

ARGS = {
    "x": x,
    "hw_shape": hw_shape,
}
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 Tensor, ndim 4, dtype family float, shape (2, 5, 4, 3) — shape (2, 5, 4, 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
normalize_bbox Ran
ran on a synthesized input
fudan-zvg/polarformer/projects/mmdet3d_plugin/core/bbox/util.py
code served (permissive licence) · get_code("8fda704fb3d1af09")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (2, 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 torch

torch.manual_seed(0)

# Create bboxes tensor with shape (batch_size, num_boxes, num_features)
# Testing with 7 features (without velocity) first
bboxes_7 = torch.randn(2, 3, 7)
# Ensure widths, lengths, heights are positive (since log is applied)
bboxes_7[..., 3:6] = torch.abs(bboxes_7[..., 3:6]) + 1.0

# Create bboxes tensor with 9 features (with velocity)
bboxes_9 = torch.randn(2, 3, 9)
bboxes_9[..., 3:6] = torch.abs(bboxes_9[..., 3:6]) + 1.0

# pc_range is a list or tensor representing [x_min, y_min, z_min, x_max, y_max, z_max]
pc_range = [-50, -50, -5, 50, 50, 3]

# Test with 7-feature bboxes
ARGS = {
    "bboxes": bboxes_7,
    "pc_range": pc_range
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 3, 8) — shape (2, 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
perspective Ran
ran; our contract draft was wrong, not the code
fudan-zvg/polarformer/projects/mmdet3d_plugin/models/necks/fpn_trans.py
code served (permissive licence) · get_code("24cccf792e409dc2")
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 5, dtype family float, shape (2, 4, 3, 5, 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)

# Construct the lidar2image matrix with shape [B, 1, 1, 1, 3, 4]
# B=2 (batch size), 1s for grid dimensions, 3x4 projection matrix
matrix = torch.randn(2, 1, 1, 1, 3, 4)

# Construct the 3D corners vector with shape [B, X, Y, Z, 3]
# B=2 (batch size), X=4, Y=3, Z=5 (distinct grid sizes), 3 for coordinates
vector = torch.randn(2, 4, 3, 5, 3)

ARGS = {
    "matrix": matrix,
    "vector": vector,
}
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 5, dtype family float, shape (2, 4, 3, 5, 2) — shape (2, 4, 3, 5, 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
denormalize_bbox Not yet run
unverified (harvested, no recorded run)
fudan-zvg/polarformer/projects/mmdet3d_plugin/core/bbox/util.py
code served (permissive licence) · get_code("260147942f1a8eb1")
How it ran

no invocation recorded.

dw_conv3x3 Not yet run
unverified (harvested, no recorded run)
fudan-zvg/polarformer/projects/mmdet3d_plugin/models/backbones/vovnet.py
code served (permissive licence) · get_code("5ebf15e6940f6710")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 7 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 6 later) and 2 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
inverse_sigmoid 51 other papers
14 dated earlier, 37 later · 23 only as an assembly brick
2005.12872 (2020-05)
End-to-End Object Detection with Transformers
2010.04159 (2020-10)
Deformable DETR: Deformable Transformers for End-to-End Object Detection
2103.11161 (2021-03)
MonteFloor: Extending MCTS for Reconstructing Accurate Large-Scale Floor Plans
and 48 more not named here
conv1x1 7 other papers
2 dated earlier, 5 later
2110.06923 (2021-10)
Object DGCNN: 3D Object Detection using Dynamic Graphs
2203.10642 (2022-03)
FUTR3D: A Unified Sensor Fusion Framework for 3D Detection
2304.01054 (2023-04)
VoxelFormer: Bird's-Eye-View Feature Generation based on Dual-view Attention for Multi-view 3D Object Detection
and 4 more not named here
conv3x3 7 other papers
2 dated earlier, 5 later
2110.06923 (2021-10)
Object DGCNN: 3D Object Detection using Dynamic Graphs
2203.10642 (2022-03)
FUTR3D: A Unified Sensor Fusion Framework for 3D Detection
2304.01054 (2023-04)
VoxelFormer: Bird's-Eye-View Feature Generation based on Dual-view Attention for Multi-view 3D Object Detection
and 4 more not named here
dw_conv3x3 7 other papers
2 dated earlier, 5 later
2110.06923 (2021-10)
Object DGCNN: 3D Object Detection using Dynamic Graphs
2203.10642 (2022-03)
FUTR3D: A Unified Sensor Fusion Framework for 3D Detection
2304.01054 (2023-04)
VoxelFormer: Bird's-Eye-View Feature Generation based on Dual-view Attention for Multi-view 3D Object Detection
and 4 more not named here
nchw_to_nlc 2 other papers
2 later
2303.09757 (2023-03)
Video Dehazing via a Multi-Range Temporal Alignment Network with Physical Prior
2408.05075 (2024-08)
DeepInteraction++: Multi-Modality Interaction for Autonomous Driving
nlc_to_nchw 1 other paper
1 later
2408.05075 (2024-08)
DeepInteraction++: Multi-Modality Interaction for Autonomous Driving
perspective 1 other paper
1 dated earlier
1811.08188 (2018-11)
Orthographic Feature Transform for Monocular 3D 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

3D object detection in autonomous driving aims to reason "what" and "where" the objects of interest present in a 3D world. Following the conventional wisdom of previous 2D object detection, existing methods often adopt the canonical Cartesian coordinate system with perpendicular axis. However, we conjugate that this does not fit the nature of the ego car's perspective, as each onboard camera perceives the world in shape of wedge intrinsic to the imaging geometry with radical (non-perpendicular) axis. Hence, in this paper we advocate the exploitation of the Polar coordinate system and propose a new Polar Transformer (PolarFormer) for more accurate 3D object detection in the bird's-eye-view (BEV) taking as input only multi-camera 2D images. Specifically, we design a cross attention based Polar detection head without restriction to the shape of input structure to deal with irregular Polar grids. For tackling the unconstrained object scale variations along Polar's distance dimension, we further introduce a multi-scalePolar representation learning strategy. As a result, our model can make best use of the Polar representation rasterized via attending to the corresponding image observation in a sequence-to-sequence fashion subject to the geometric constraints. Thorough experiments on the nuScenes dataset demonstrate that our PolarFormer outperforms significantly state-of-the-art 3D object detection alternatives.

For agents

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

get_harvested_code_for_paper("2206.15398")
get_code_for_paper("2206.15398")
have("2206.15398")

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

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

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

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

Connect an agent — have() is free.