SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.17118 · 2023

Fully Sparse 3D Occupancy Prediction

arXiv · PDF · Open in the Atlas

Code that ran

16 of 24 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 1 has no contract verdict; 14 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/2312.17118.json · badge: /api/ran/2312.17118.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
mcg-nju/sparseocc canonical (classifier label)
classifier basis: census
8 ran · 4 no recorded run
mcg-nju/sparsebev canonical (classifier label)
classifier basis: census
5 ran · 4 no recorded run
opendrivelab/occnet canonical (classifier label)
classifier basis not recorded on the link
3 ran · 0 no recorded run
FunctionStatusWhere it lives
batch_dice_loss Ran
ran on a synthesized input
mcg-nju/sparseocc/models/matcher.py
code served (permissive licence) · get_code("483b6b8c81c0b6bb")
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, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create sample tensors for the batch_dice_loss function
# inputs: predictions - shape (batch_size, num_features) before masking
# targets: binary labels - same shape as inputs
# mask_camera: boolean mask to select features

batch_size = 2
num_features = 4

# inputs: predictions tensor (batch=2, features=4)
inputs = torch.randn(batch_size, num_features)

# targets: binary classification labels (batch=2, features=4)
targets = torch.randint(0, 2, (batch_size, num_features)).float()

# mask_camera: boolean mask to select which features to keep (batch=2, features=4)
# or None if no masking is desired
mask_camera = torch.tensor([True, True, False, True])

ARGS = {
    "inputs": inputs,
    "targets": targets,
    "mask_camera": mask_camera,
}
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, 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
batch_sigmoid_ce_loss Ran
ran; our contract draft was wrong, not the code
mcg-nju/sparseocc/models/matcher.py
code served (permissive licence) · get_code("7e8e2bcfcb2b11e8")
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, 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
import torch.nn.functional as F

torch.manual_seed(0)

# Create small tensor inputs
batch_size = 2
hw = 4  # spatial dimension (height * width)

# inputs: float tensor of shape (batch_size, hw)
inputs = torch.randn(batch_size, hw, dtype=torch.float32)

# targets: float tensor with same shape as inputs, binary values (0 or 1)
targets = torch.randint(0, 2, (batch_size, hw), dtype=torch.float32)

# mask_camera: can be None or a 1D tensor
mask_camera = torch.ones(hw, dtype=torch.float32)

ARGS = {
    "inputs": inputs,
    "targets": targets,
    "mask_camera": mask_camera,
}
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, 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
compute_scal_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mcg-nju/sparseocc/models/loss_utils.py
code served (permissive licence) · get_code("5b38b49212868074")
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 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.functional as F

torch.manual_seed(0)

# Construct valid arguments for compute_scal_loss
# pred: shape (batch_size, num_classes, spatial_dim)
# gt: shape (batch_size, spatial_dim) - ground truth class indices
# class_id: int - which class to compute loss for
# reverse: bool - whether to reverse the target
# ignore_index: int - index to ignore

batch_size = 2
num_classes = 4
spatial_dim = 3

# pred tensor: predictions for each class (batch_size, num_classes, spatial_dim)
pred = torch.rand(batch_size, num_classes, spatial_dim, dtype=torch.float32)

# gt tensor: ground truth class indices (batch_size, spatial_dim)
# Values should be in range [0, num_classes) or ignore_index
gt = torch.tensor([
    [0, 1, 2],
    [1, 2, 3]
], dtype=torch.long)

# class_id: which class to compute loss for
class_id = 1

# reverse: whether to reverse the logic
reverse = False

# ignore_index: which index to ignore
ignore_index = 255

ARGS = {
    "pred": pred,
    "gt": gt,
    "class_id": class_id,
    "reverse": reverse,
    "ignore_index": ignore_index
}
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 tuple, ndim 2, dtype family float — 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
detach_variable Ran
ran; our contract draft was wrong, not the code
mcg-nju/sparsebev/models/checkpoint.py
code served (permissive licence) · get_code("c9aa0bc1f2c95d8c")
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 torch

torch.manual_seed(0)

# Create a tuple of tensors with different properties
tensor1 = torch.randn(2, 4, requires_grad=True)
tensor2 = torch.randn(2, 3, requires_grad=False)
tensor3 = torch.randn(2, 5)

# Create a tuple containing tensors and non-tensor objects
inputs = (tensor1, tensor2, "string_value", tensor3, 42)

ARGS = {
    "inputs": inputs
}
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 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
evaluate Ran
ran; our contract draft was wrong, not the code
mcg-nju/sparsebev/val.py
code served (permissive licence) · get_code("97c6373ac9809717")
How it ran

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

import logging

# Create a mock dataset class that implements the evaluate method
class MockDataset:
    def evaluate(self, results, jsonfile_prefix=None):
        # Return a dict with all the metrics the function expects
        return {
            'pts_bbox_NuScenes/mAP': 0.45,
            'pts_bbox_NuScenes/mATE': 0.32,
            'pts_bbox_NuScenes/mASE': 0.28,
            'pts_bbox_NuScenes/mAOE': 0.15,
            'pts_bbox_NuScenes/mAVE': 0.22,
            'pts_bbox_NuScenes/mAAE': 0.18,
            'pts_bbox_NuScenes/NDS': 0.52,
        }

# Create mock results - this is what gets passed to dataset.evaluate()
mock_results = [
    {
        'boxes_3d': [[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0]],
        'scores_3d': [0.9],
        'labels_3d': [0],
    },
    {
        'boxes_3d': [[1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5]],
        'scores_3d': [0.85],
        'labels_3d': [1],
    },
]

# Set up logging to avoid warnings
logging.basicConfig(level=logging.INFO)

ARGS = {
    'dataset': MockDataset(),
    'results': mock_results,
    'epoch': 1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
index2point Ran
ran; our contract draft was wrong, not the code
mcg-nju/sparseocc/models/sparse_voxel_decoder.py
code served (permissive licence) · get_code("f87970b7c22e56a5")
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, 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

torch.manual_seed(0)

# coords: [B, N, 3], int
# B=2 (batch), N=4 (number of points), 3 (x, y, z coordinates)
coords = torch.randint(0, 10, (2, 4, 3), dtype=torch.int32)

# pc_range: [-40, -40, -1.0, 40, 40, 5.4]
# This is the point cloud range [x_min, y_min, z_min, x_max, y_max, z_max]
pc_range = [-40, -40, -1.0, 40, 40, 5.4]

# voxel_size: float
voxel_size = 0.1

ARGS = {
    "coords": coords,
    "pc_range": pc_range,
    "voxel_size": voxel_size,
}
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, 4, 3) — shape (2, 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
inverse_sigmoid Ran
ran; our contract draft was wrong, not the code
mcg-nju/sparsebev/models/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from zhongjiaru/CoopTrack, is pointer only (licence: NONE) · get_code("f3855be53d36327d")
How it ran

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

make_sample_points_from_mask Ran
ran; our contract draft was wrong, not the code
mcg-nju/sparseocc/models/sparsebev_sampling.py
code served (permissive licence) · get_code("4a9cf3011e93f57b")
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, 3, 8, 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

torch.manual_seed(0)

# Test case 1: Dense valid_map [B, Q, W, H, D]
B, Q = 2, 3
W, H, D = 4, 5, 6
num_points = 8

# Create a valid_map with some valid locations
valid_map_dense = torch.zeros((B, Q, W, H, D), dtype=torch.bool)
# Mark some locations as valid
valid_map_dense[0, 0, 1:3, 2:4, 3:5] = True
valid_map_dense[0, 1, 0:2, 1:3, 2:4] = True
valid_map_dense[1, 2, 1:4, 0:3, 1:5] = True

pc_range = [-40.0, -40.0, -1.0, 40.0, 40.0, 5.5]
occ_size = [W, H, D]
offset = torch.zeros(1)

ARGS = {
    "valid_map": valid_map_dense,
    "pc_range": pc_range,
    "occ_size": occ_size,
    "num_points": num_points,
    "occ_loc": None,
    "offset": offset,
}
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, 3, 8, 3) — shape (2, 3, 8, 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
meshgrid3d Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mcg-nju/sparseocc/gen_instance_info.py
code served (permissive licence) · get_code("c6f233575958bdd3")
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 (4, 5, 6, 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

torch.manual_seed(0)

# occ_size: tuple of (W, H, D) representing occupancy grid dimensions
occ_size = (4, 5, 6)

# pc_range: list/tuple of [x_min, y_min, z_min, x_max, y_max, z_max]
# representing the point cloud range in 3D space
pc_range = [0.0, 0.0, 0.0, 10.0, 20.0, 30.0]

ARGS = {
    "occ_size": occ_size,
    "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 4, dtype family float, shape (4, 5, 6, 3) — shape (4, 5, 6, 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
pad_multiple Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mcg-nju/sparsebev/models/utils.py
code served (permissive licence) · get_code("3e9c83e1f53e5cdb")
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, 3, 32, 32) 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 tensor with shape (batch=2, channels=3, height=28, width=20)
# Height and width are chosen to not be divisible by 32 for testing padding
inputs = torch.randn(2, 3, 28, 20)

# Create img_metas list with metadata for each batch item
# Each batch item needs 'ori_shape' which is a list (N elements)
img_metas = [
    {
        'ori_shape': [(28, 20, 3), (28, 20, 3)]  # N=2 original shapes
    },
    {
        'ori_shape': [(28, 20, 3), (28, 20, 3)]  # N=2 original shapes
    }
]

size_divisor = 32

ARGS = {
    'inputs': inputs,
    'img_metas': img_metas,
    'size_divisor': size_divisor
}
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, 3, 32, 32) — shape (2, 3, 32, 32) 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
point2bbox Ran
ran; our contract draft was wrong, not the code
mcg-nju/sparseocc/models/sparse_voxel_decoder.py
code served (permissive licence) · get_code("dc9c1c4a8717a0bf")
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, 4, 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 torch

torch.manual_seed(0)

# coords: [B, N, 3], float
# B=2 (batch size), N=4 (number of points), 3 (spatial coordinates)
coords = torch.randn(2, 4, 3, dtype=torch.float32)

# box_size: float
box_size = 0.5

ARGS = {
    "coords": coords,
    "box_size": box_size,
}
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, 4, 6) — shape (2, 4, 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
rotation_3d_in_axis Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mcg-nju/sparsebev/models/utils.py
code served (permissive licence) · get_code("24ed606d1bb9e644")
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, 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

torch.manual_seed(0)

# The function takes:
# - points: tensor with shape [..., n_points, 3]
# - angles: tensor with shape [..., 1]

# Create small test tensors
# points: batch_size=2, n_points=4, coordinates=3
points = torch.randn(2, 4, 3)

# angles: batch_size=2, angle_dim=1
angles = torch.randn(2, 1)

ARGS = {
    'points': points,
    'angles': angles,
}
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, 4, 3) — shape (2, 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
rotz Ran
ran, honoured the contract we drafted
opendrivelab/occnet/utils/vis.py
code served (permissive licence) · get_code("a30067af1a83cdf2")
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 (3, 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

torch.manual_seed(0)

# The function rotz takes a single parameter 't' which is used with:
# - torch.cos(t)
# - torch.sin(t)
# - torch.tensor() construction
# So 't' should be a scalar or tensor that can be passed to cos/sin

t = torch.tensor(0.5)

ARGS = {
    "t": t
}
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 (3, 3) — shape (3, 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
upsample Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mcg-nju/sparseocc/models/sparse_voxel_decoder.py
code served (permissive licence) · get_code("dac02d544d21142d")
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 torch

torch.manual_seed(0)

# Construct valid arguments for the upsample function
pre_feat = torch.randn(2, 4, 16)  # (B=2, N=4, C=16)
pre_coords = torch.randn(2, 4, 3)  # (B=2, N=4, 3)
interval = 2  # scalar value for voxel interval

ARGS = {
    "pre_feat": pre_feat,
    "pre_coords": pre_coords,
    "interval": interval,
}
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 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
voxel2points Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
opendrivelab/occnet/utils/vis.py
code served (permissive licence) · get_code("4124214e21574acc")
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 torch
import numpy as np

torch.manual_seed(0)

# Create a small voxel grid (3D tensor with class labels)
# Shape: (5, 4, 3) - small spatial dimensions
voxel_data = torch.randint(0, 20, (5, 4, 3), dtype=torch.int32)

# Set a few values to ignore labels to test masking
voxel_data[0, 0, 0] = 17
voxel_data[1, 1, 1] = 255

ARGS = {
    "voxel": voxel_data,
    "voxelSize": [0.2, 0.2, 0.2],
    "range": [-40.0, -40.0, -1.0, 40.0, 40.0, 5.4],
    "ignore_labels": [17, 255]
}
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 — 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
voxel_profile Ran
ran; our contract draft was wrong, not the code
opendrivelab/occnet/utils/vis.py
code served (permissive licence) · get_code("bd1aa420eb46a2d4")
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, 7) 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 voxel tensor: shape (2, 3) for batch of 2 voxels with 3 coordinates each
# The function expects voxel[:, :2] (x, y) and voxel[:, 2] (z)
voxel = torch.tensor([
    [1.0, 2.0, 3.0],
    [4.0, 5.0, 6.0]
], dtype=torch.float32)

# voxel_size is a tuple/list of 3 elements: (width, length, height)
voxel_size = [0.5, 0.6, 0.7]

ARGS = {
    "voxel": voxel,
    "voxel_size": voxel_size
}
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, 7) — shape (2, 7) 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
checkpoint Not yet run
unverified (harvested, no recorded run)
mcg-nju/sparsebev/models/checkpoint.py
code served (permissive licence) · get_code("ac40908e99924f13")
How it ran

no invocation recorded.

checkpoint_sequential Not yet run
unverified (harvested, no recorded run)
mcg-nju/sparsebev/models/checkpoint.py
code served (permissive licence) · get_code("1c35dc9d8a7ecbc3")
How it ran

no invocation recorded.

dice_loss Not yet run
unverified (harvested, no recorded run)
mcg-nju/sparseocc/models/loss_utils.py
code served (permissive licence) · get_code("7649978f7463b1e8")
How it ran

no invocation recorded.

get_voxel_decoder_loss_input Not yet run
unverified (harvested, no recorded run)
mcg-nju/sparseocc/models/loss_utils.py
code served (permissive licence) · get_code("9e5b23a1e48e12a1")
How it ran

no invocation recorded.

make_sample_points Not yet run
unverified (harvested, no recorded run)
mcg-nju/sparsebev/models/sparsebev_sampling.py
code served (permissive licence) · get_code("7c1905bfbdc4affc")
How it ran

no invocation recorded.

make_sample_points_from_bbox Not yet run
unverified (harvested, no recorded run)
mcg-nju/sparseocc/models/sparsebev_sampling.py
code served (permissive licence) · get_code("9cf47f1cb19afbc9")
How it ran

no invocation recorded.

sampling_4d Not yet run
unverified (harvested, no recorded run)
mcg-nju/sparsebev/models/sparsebev_sampling.py
code served (permissive licence) · get_code("b65b0ef8ceb0314c")
How it ran

no invocation recorded.

sampling_4d Not yet run
unverified (harvested, no recorded run)
mcg-nju/sparseocc/models/sparsebev_sampling.py
code served (permissive licence) · get_code("88369f6990ec316a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 24 samples lifted from this paper's linked repositories, 24 carry a function identity and 0 do not. Of the 24 distinct functions with an identity, 22 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 22 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
34 dated earlier, 1 the same month, 16 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
checkpoint 2 other papers
2 later
03570 (2024 (year only))
Fully Sparse 3D Occupancy Prediction
Chu_RaCFormer_Towards_High-Quality_3D_Object_Detection_via_Query-based_Radar-Camera_Fusion_CVPR_2025_paper (2025 (year only))
RaCFormer: Towards High-Quality 3D Object Detection via Query-based Radar-Camera Fusion
checkpoint_sequential 2 other papers
2 later
03570 (2024 (year only))
Fully Sparse 3D Occupancy Prediction
Chu_RaCFormer_Towards_High-Quality_3D_Object_Detection_via_Query-based_Radar-Camera_Fusion_CVPR_2025_paper (2025 (year only))
RaCFormer: Towards High-Quality 3D Object Detection via Query-based Radar-Camera Fusion
detach_variable 2 other papers
2 later
03570 (2024 (year only))
Fully Sparse 3D Occupancy Prediction
Chu_RaCFormer_Towards_High-Quality_3D_Object_Detection_via_Query-based_Radar-Camera_Fusion_CVPR_2025_paper (2025 (year only))
RaCFormer: Towards High-Quality 3D Object Detection via Query-based Radar-Camera Fusion
batch_dice_loss 1 other paper
1 later
03570 (2024 (year only))
Fully Sparse 3D Occupancy Prediction
batch_sigmoid_ce_loss 1 other paper
1 later
03570 (2024 (year only))
Fully Sparse 3D Occupancy Prediction
compute_scal_loss 1 other paper
1 later
03570 (2024 (year only))
Fully Sparse 3D Occupancy Prediction
dice_loss 1 other paper
1 later
03570 (2024 (year only))
Fully Sparse 3D Occupancy Prediction
evaluate 1 other paper
1 later
Chu_RaCFormer_Towards_High-Quality_3D_Object_Detection_via_Query-based_Radar-Camera_Fusion_CVPR_2025_paper (2025 (year only))
RaCFormer: Towards High-Quality 3D Object Detection via Query-based Radar-Camera Fusion
get_voxel_decoder_loss_input 1 other paper
1 later
03570 (2024 (year only))
Fully Sparse 3D Occupancy Prediction
index2point 1 other paper
1 later
03570 (2024 (year only))
Fully Sparse 3D Occupancy Prediction
make_sample_points_from_bbox 1 other paper
1 later
03570 (2024 (year only))
Fully Sparse 3D Occupancy Prediction
make_sample_points_from_mask 1 other paper
1 later
03570 (2024 (year only))
Fully Sparse 3D Occupancy Prediction
meshgrid3d 1 other paper
1 later
03570 (2024 (year only))
Fully Sparse 3D Occupancy Prediction
pad_multiple 1 other paper
1 later
Chu_RaCFormer_Towards_High-Quality_3D_Object_Detection_via_Query-based_Radar-Camera_Fusion_CVPR_2025_paper (2025 (year only))
RaCFormer: Towards High-Quality 3D Object Detection via Query-based Radar-Camera Fusion
point2bbox 1 other paper
1 later
03570 (2024 (year only))
Fully Sparse 3D Occupancy Prediction
rotation_3d_in_axis 1 other paper
1 later
Chu_RaCFormer_Towards_High-Quality_3D_Object_Detection_via_Query-based_Radar-Camera_Fusion_CVPR_2025_paper (2025 (year only))
RaCFormer: Towards High-Quality 3D Object Detection via Query-based Radar-Camera Fusion
rotz 1 other paper
1 later
2407.04049 (2024-07)
Occupancy as Set of Points
sampling_4d 1 other paper
1 later
03570 (2024 (year only))
Fully Sparse 3D Occupancy Prediction
upsample 1 other paper
1 later
03570 (2024 (year only))
Fully Sparse 3D Occupancy Prediction

Shown: the 20 functions present in the most other papers. 2 more shared functions are not listed here.

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

Occupancy prediction plays a pivotal role in autonomous driving. Previous methods typically construct dense 3D volumes, neglecting the inherent sparsity of the scene and suffering from high computational costs. To bridge the gap, we introduce a novel fully sparse occupancy network, termed SparseOcc. SparseOcc initially reconstructs a sparse 3D representation from camera-only inputs and subsequently predicts semantic/instance occupancy from the 3D sparse representation by sparse queries. A mask-guided sparse sampling is designed to enable sparse queries to interact with 2D features in a fully sparse manner, thereby circumventing costly dense features or global attention. Additionally, we design a thoughtful ray-based evaluation metric, namely RayIoU, to solve the inconsistency penalty along the depth axis raised in traditional voxel-level mIoU criteria. SparseOcc demonstrates its effectiveness by achieving a RayIoU of 34.0, while maintaining a real-time inference speed of 17.3 FPS, with 7 history frames inputs. By incorporating more preceding frames to 15, SparseOcc continuously improves its performance to 35.1 RayIoU without bells and whistles.

For agents

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

get_harvested_code_for_paper("2312.17118")
get_code_for_paper("2312.17118")
have("2312.17118")

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

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

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

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

Connect an agent — have() is free.