SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.03908 · 2023

SAM3D: Segment Anything in 3D Scenes

arXiv · PDF · Open in the Atlas

Code that ran

8 of 14 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, 1 violated it and 4 have no contract verdict; 3 failures of our instrument; 6 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/2306.03908.json · badge: /api/ran/2306.03908.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
pointcept/segmentanything3d canonical (classifier label)
classifier basis: census
8 ran · 6 no recorded run
FunctionStatusWhere it lives
face_normal Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pointcept/segmentanything3d/scannet-preprocess/preprocess_scannet.py
code served (permissive licence) · get_code("4d381d3548002a05")
How it ran

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

import numpy as np

# Create small test data for a simple mesh
# vertex: Nx3 array of 3D vertex coordinates
# face: Mx3 array of vertex indices forming triangles

# Create 4 vertices forming a simple mesh
vertex = np.array([
    [0.0, 0.0, 0.0],
    [1.0, 0.0, 0.0],
    [0.0, 1.0, 0.0],
    [0.0, 0.0, 1.0]
], dtype=np.float32)

# Create 2 faces (triangles) using vertex indices
face = np.array([
    [0, 1, 2],
    [0, 1, 3]
], dtype=np.int32)

ARGS = {
    "vertex": vertex,
    "face": face
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_sam Ran
ran on a synthesized input
pointcept/segmentanything3d/sam3d.py
code served (permissive licence) · get_code("d1ee0742bacaae4e")
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 int, shape (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 numpy as np

class MockMaskGenerator:
    def generate(self, image):
        """
        Generate mock masks for the image.
        Returns a list of dicts, each with a 'segmentation' key containing a boolean mask.
        """
        height, width = image.shape[0], image.shape[1]
        masks = []
        
        # Create 3 mock masks
        mask1 = np.zeros((height, width), dtype=bool)
        mask1[0:2, 0:2] = True
        masks.append({'segmentation': mask1})
        
        mask2 = np.zeros((height, width), dtype=bool)
        mask2[0:2, 2:4] = True
        masks.append({'segmentation': mask2})
        
        mask3 = np.zeros((height, width), dtype=bool)
        mask3[2:4, 0:4] = True
        masks.append({'segmentation': mask3})
        
        return masks

# Create a small test image (4x3 to have distinct dimensions)
image = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)

# Create mock mask generator
mask_generator = MockMaskGenerator()

ARGS = {
    'image': image,
    'mask_generator': mask_generator
}
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 int, shape (4, 3) — shape (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
map_label_image Ran
ran; our contract draft was wrong, not the code
pointcept/segmentanything3d/scannet-preprocess/prepare_2d_data/prepare_2d_data.py
code served (permissive licence) · get_code("f39dd6d6d882fdc3")
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 int, 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 numpy as np

# Create a small image as a numpy array with integer labels
image = np.array([
    [0, 1, 2],
    [1, 0, 2],
    [2, 1, 0]
], dtype=np.uint8)

# Create a label mapping dictionary
label_mapping = {
    0: 10,
    1: 20,
    2: 30
}

ARGS = {
    "image": image,
    "label_mapping": label_mapping
}
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 int, 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
overlap_percentage Ran
ran on a synthesized input
pointcept/segmentanything3d/util.py
code served (permissive licence) · get_code("91cc7ce2ed8bf1e0")
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 float64, ndim 0, 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 two small binary masks for testing overlap_percentage
mask1 = np.array([[1, 1, 0, 0],
                   [1, 1, 0, 0],
                   [0, 0, 0, 0],
                   [0, 0, 0, 0]], dtype=bool)

mask2 = np.array([[1, 0, 0, 0],
                   [1, 1, 0, 0],
                   [0, 1, 0, 0],
                   [0, 0, 0, 0]], dtype=bool)

ARGS = {
    'mask1': mask1,
    'mask2': mask2
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
read_label_mapping Ran
ran; our contract draft was wrong, not the code
pointcept/segmentanything3d/scannet-preprocess/prepare_2d_data/util.py
pointer only (licence: MIT); the stored copy get_code serves, from aminebdj/openyolo3d, is pointer only (licence: NONE) · get_code("d77ef48746ee7ff1")
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 aminebdj/openyolo3d, 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.

remove_samll_masks Ran
ran on a synthesized input
pointcept/segmentanything3d/util.py
code served (permissive licence) · get_code("937cf94093e11573")
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 3, 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 small binary masks with different sizes and overlaps
mask1 = np.random.randint(0, 2, size=(10, 10)).astype(bool)
mask2 = np.random.randint(0, 2, size=(10, 10)).astype(bool)
mask3 = np.random.randint(0, 2, size=(10, 10)).astype(bool)

# Create mask dicts in the format expected by the function
masks = [
    {'segmentation': mask1},
    {'segmentation': mask2},
    {'segmentation': mask3},
]

ARGS = {
    'masks': masks,
    'ratio': 0.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 list, ndim 3, 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
represents_int Ran
ran, violated the contract we drafted
pointcept/segmentanything3d/scannet-preprocess/prepare_2d_data/util.py
pointer only (licence: MIT); the stored copy get_code serves, from aminebdj/openyolo3d, is pointer only (licence: NONE) · get_code("945af43d6054ff01")
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 aminebdj/openyolo3d, 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.

to_numpy Ran
ran on a synthesized input
pointcept/segmentanything3d/util.py
code served (permissive licence) · get_code("6a199c084512e773")
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, 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
import numpy as np

torch.manual_seed(0)

# Create a small tensor for testing
tensor_input = torch.randn(2, 4)

# Create a numpy array for testing
numpy_input = np.array([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]])

ARGS = {
    "x": tensor_input
}
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 ndarray, 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
compute_overlap_ratio Not yet run
unverified (harvested, no recorded run)
pointcept/segmentanything3d/scannet-preprocess/scannet_pair/compute_full_overlapping.py
code served (permissive licence) · get_code("12c9868dfa6bff79")
How it ran

no invocation recorded.

get_matching_indices Not yet run
unverified (harvested, no recorded run)
pointcept/segmentanything3d/scannet-preprocess/scannet_pair/compute_full_overlapping.py
code served (permissive licence) · get_code("f33ff5bc9eb406b3")
How it ran

no invocation recorded.

get_pcd Not yet run
unverified (harvested, no recorded run)
pointcept/segmentanything3d/sam3d.py
code served (permissive licence) · get_code("95c2cce7436ad5d8")
How it ran

no invocation recorded.

make2d Not yet run
unverified (harvested, no recorded run)
pointcept/segmentanything3d/scannet-preprocess/scannet_pair/plyfile.py
code served (permissive licence) · get_code("adb14f1f70fdedb1")
How it ran

no invocation recorded.

read_plymesh Not yet run
unverified (harvested, no recorded run)
pointcept/segmentanything3d/scannet-preprocess/preprocess_scannet.py
code served (permissive licence) · get_code("3a15a719072c88d7")
How it ran

no invocation recorded.

read_scene_types_mapping Not yet run
unverified (harvested, no recorded run)
pointcept/segmentanything3d/scannet-preprocess/prepare_2d_data/util.py
pointer only (licence: MIT); the stored copy get_code serves, from aminebdj/openyolo3d, is pointer only (licence: NONE) · get_code("42c8e07d575c5757")
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 aminebdj/openyolo3d, 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. No invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 8 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 8 later) and 6 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
represents_int 7 other papers
2 dated earlier, 5 later
1906.01140 (2019-06)
Learning Object Bounding Boxes for 3D Instance Segmentation on Point Clouds
aaai_16558 (2021 (year only))
DocParser: Hierarchical Document Structure Parsing from Renderings
2311.16054 (2023-11)
Metric Space Magnitude for Evaluating the Diversity of Latent Representations
and 4 more not named here
make2d 5 other papers
2 dated earlier, 3 later
1808.02201 (2018-08)
Holistic 3D Scene Parsing and Reconstruction from a Single RGB Image
2004.01301 (2020-04)
Generative PointNet: Deep Energy-Based Learning on Unordered Point Sets for 3D Generation, Reconstruction and Classification
2401.01552 (2024-01)
CRA-PCN: Point Cloud Completion with Intra-and Inter-level Cross-Resolution Transformers
and 2 more not named here
read_label_mapping 4 other papers
1 dated earlier, 3 later
1906.01140 (2019-06)
Learning Object Bounding Boxes for 3D Instance Segmentation on Point Clouds
2311.17707 (2023-11)
SAMPro3D: Locating SAM Prompts in 3D for Zero-Shot Instance Segmentation
2403.04198 (2024-03)
This CVPR paper is the Open Access version, provided by the Computer Vision Foundation. Except for this watermark, it is identical to the accepted version; the final published version of the proceedings is available on IEEE Xplore
and 1 more not named here
face_normal 2 other papers
1 dated earlier, 1 later
2207.11209 (2022-07)
Divide and Conquer: 3D Point Cloud Instance Segmentation With Point-Wise Binarization
2608.30618 (2026-08)
AQ3D: Adaptive Query Transformer for 3D Instance Segmentation
map_label_image 1 other paper
1 later
2311.17707 (2023-11)
SAMPro3D: Locating SAM Prompts in 3D for Zero-Shot Instance Segmentation
read_plymesh 1 other paper
1 later
2308.04409 (2023-08)
V-DETR: DETR with Vertex Relative Position Encoding for 3D Object Detection
read_scene_types_mapping 1 other paper
1 later
2406.02548 (2024-06)
Open-YOLO 3D: Towards Fast and Accurate Open-Vocabulary 3D Instance Segmentation
to_numpy 1 other paper
1 later
2503.16429 (2025-03)
Sonata: Self-Supervised Learning of Reliable Point Representations

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

In this work, we propose SAM3D, a novel framework that is able to predict masks in 3D point clouds by leveraging the Segment-Anything Model (SAM) in RGB images without further training or finetuning. For a point cloud of a 3D scene with posed RGB images, we first predict segmentation masks of RGB images with SAM, and then project the 2D masks into the 3D points. Later, we merge the 3D masks iteratively with a bottom-up merging approach. At each step, we merge the point cloud masks of two adjacent frames with the bidirectional merging approach. In this way, the 3D masks predicted from different frames are gradually merged into the 3D masks of the whole 3D scene. Finally, we can optionally ensemble the result from our SAM3D with the over-segmentation results based on the geometric information of the 3D scenes. Our approach is experimented with ScanNet dataset and qualitative results demonstrate that our SAM3D achieves reasonable and fine-grained 3D segmentation results without any training or finetuning of SAM.

For agents

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

get_harvested_code_for_paper("2306.03908")
get_code_for_paper("2306.03908")
have("2306.03908")

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

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

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

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

Connect an agent — have() is free.