SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2408.16768 · 2024

SAM2Point: Segment Any 3D as Videos in Zero-shot and Promptable Manners

arXiv · PDF · Open in the Atlas

Code that ran

10 of 13 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; 7 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 2 failures of our instrument; 3 no recorded run), measured 2026-11-22; 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/2408.16768.json · badge: /api/ran/2408.16768.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
ziyuguo99/sam2point canonical (classifier label)
classifier basis: census
10 ran · 3 no recorded run
FunctionStatusWhere it lives
M Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ziyuguo99/sam2point/sam2point/voxelizer.py
code served (permissive licence) · get_code("3095f89bf0fc823d")
How it ran

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

def M(axis, theta):
    return expm(np.cross(np.eye(3), axis / norm(axis) * theta))

# Setup code
axis = np.array([1.0, 0.0, 0.0])  # Unit direction vector
theta = 0.5  # Rotation angle in radians

ARGS = {
    "axis": axis,
    "theta": theta
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (3, 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
build_fold Ran
ran, violated the contract we drafted
ziyuguo99/sam2point/sam2point/utils.py
code served (permissive licence) · get_code("8ea3c00719c7f8d6")
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 bool, 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 os
import tempfile

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()
test_path = os.path.join(temp_dir, "test_fold")

ARGS = {
    "path": test_path
}
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 bool, 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
cal Ran
ran, honoured the contract we drafted
ziyuguo99/sam2point/sam2point/utils.py
code served (permissive licence) · get_code("6171f7a2fbe4ec0d")
How it ran

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

import numpy as np

# Create a reference point in 3D space
input_point = [1.0, 2.0, 3.0]

# Create an array of 3D points to search through
# Using distinct dimensions: 5 points, each with 3 coordinates
points = np.array([
    [0.5, 1.5, 2.5],
    [1.1, 2.1, 3.1],
    [2.0, 3.0, 4.0],
    [0.0, 0.0, 0.0],
    [5.0, 5.0, 5.0]
])

ARGS = {
    "input": input_point,
    "points": points
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_number Ran
ran, honoured the contract we drafted
ziyuguo99/sam2point/gen_video.py
code served (permissive licence) · get_code("4dd79d2c43d8afdb")
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 int, ndim 0, dtype family int, 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 re

def extract_number(filename):
    match = re.search('(\\d+)', filename)
    return int(match.group()) if match else 0

# The function takes a single parameter: filename (a string)
# It searches for digits in the filename and returns the first number found

ARGS = {
    "filename": "document_123_final.txt"
}
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 int, ndim 0, dtype family int, 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
fnv_hash_vec Ran
ran, honoured the contract we drafted
ziyuguo99/sam2point/sam2point/voxelization_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Yuzhe-Fu/FlashFPS, is pointer only (licence: NOASSERTION) · get_code("0086c892bd1df796")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Yuzhe-Fu/FlashFPS, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

load_KITTI_sample Ran
ran, honoured the contract we drafted
ziyuguo99/sam2point/sam2point/dataset.py
code served (permissive licence) · get_code("3d9e72bd3d0dfbee")
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 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
import tempfile
import os

# Create a temporary directory for the test file
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test_kitti.npy")

# Create sample KITTI-like data: point cloud with positions (3 cols) and colors (3 cols)
# Shape: (num_points, 6) where columns are [x, y, z, r, g, b]
sample_data = np.array([
    [1.0, 2.0, 3.0, 255, 128, 64],
    [4.0, 5.0, 6.0, 200, 100, 50],
    [2.0, 3.0, 4.0, 180, 90, 45],
], dtype=np.float32)

np.save(temp_file, sample_data)

ARGS = {
    "data_path": temp_file,
    "close": False
}
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, ndim 3, 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
load_S3DIS_sample Ran
ran, honoured the contract we drafted
ziyuguo99/sam2point/sam2point/dataset.py
code served (permissive licence) · get_code("19a8179b98956868")
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 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
import tempfile
import os

# Create a temporary text file with point cloud data
# Format: x, y, z, r, g, b (3 coordinates + 3 color channels)
temp_dir = tempfile.mkdtemp()
text_path = os.path.join(temp_dir, "sample_pointcloud.txt")

# Create sample data: 5 points with x,y,z coordinates and RGB colors
sample_data = np.array([
    [0.1, 0.2, 0.3, 255, 128, 64],
    [0.4, 0.5, 0.6, 200, 100, 50],
    [0.2, 0.3, 0.4, 150, 200, 100],
    [0.5, 0.6, 0.7, 100, 50, 200],
    [0.3, 0.4, 0.5, 50, 150, 250],
])

np.savetxt(text_path, sample_data)

ARGS = {
    "text_path": text_path,
    "sample": False,
}
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, ndim 3, 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
load_ScanNet_sample Ran
ran, honoured the contract we drafted
ziyuguo99/sam2point/sam2point/dataset.py
code served (permissive licence) · get_code("a00f8fcee3699d61")
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 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
import torch
import tempfile
import os

torch.manual_seed(0)

# Create a temporary file with a minimal valid ScanNet sample
temp_dir = tempfile.mkdtemp()
data_path = os.path.join(temp_dir, "sample.pt")

# Create minimal valid data structure
sample_data = {
    'coord': torch.tensor([
        [0.0, 1.0, 2.0],
        [1.0, 2.0, 3.0],
        [2.0, 3.0, 4.0],
        [3.0, 4.0, 5.0]
    ]),
    'color': torch.tensor([
        [255, 128, 64],
        [200, 150, 100],
        [100, 150, 200],
        [50, 100, 150]
    ], dtype=torch.uint8)
}

torch.save(sample_data, data_path)

ARGS = {
    'data_path': data_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 3, 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
ravel_hash_vec Ran
ran, honoured the contract we drafted
ziyuguo99/sam2point/sam2point/voxelization_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Yuzhe-Fu/FlashFPS, is pointer only (licence: NOASSERTION) · get_code("afdc8ad15d9098b8")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Yuzhe-Fu/FlashFPS, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

sparse_quantize Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ziyuguo99/sam2point/sam2point/voxelization_utils.py
code served (permissive licence) · get_code("df78e8a77fd7f51f")
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)
np.random.seed(0)

# Create sample coordinates: 5 points in 3D space
coords = np.array([
    [0.1, 0.2, 0.3],
    [0.5, 0.6, 0.7],
    [1.1, 1.2, 1.3],
    [2.0, 2.1, 2.2],
    [2.5, 2.6, 2.7]
], dtype=np.float32)

# Create sample features: 5 points with 4 features each
feats = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0],
    [9.0, 10.0, 11.0, 12.0],
    [13.0, 14.0, 15.0, 16.0],
    [17.0, 18.0, 19.0, 20.0]
], dtype=np.float32)

# Create sample labels: 5 labels
labels = np.array([0, 1, 0, 2, 1], dtype=np.int32)

ARGS = {
    'coords': coords,
    'feats': feats,
    'labels': labels,
    'ignore_label': 255,
    'set_ignore_label_when_collision': False,
    'return_index': False,
    'hash_type': 'fnv',
    'quantization_size': 1.0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — 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
build_sam2 Not yet run
unverified (harvested, no recorded run)
ziyuguo99/sam2point/sam2/build_sam.py
code served (permissive licence) · get_code("31a4fffe09fed1c5")
How it ran

no invocation recorded.

build_sam2_hf Not yet run
unverified (harvested, no recorded run)
ziyuguo99/sam2point/sam2/build_sam.py
code served (permissive licence) · get_code("b817431ff3ed73b4")
How it ran

no invocation recorded.

build_sam2_video_predictor Not yet run
unverified (harvested, no recorded run)
ziyuguo99/sam2point/sam2/build_sam.py
code served (permissive licence) · get_code("6cd9b91468681cef")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 6 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 5 the same month, 4 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
fnv_hash_vec 12 other papers
8 dated earlier, 1 the same month, 3 later
2211.15654 (2022-11)
OpenScene: 3D Scene Understanding with Open Vocabularies
2212.02011 (2022-12)
PointCaM: Cut-and-Mix for Open-Set Point Cloud Learning
and 9 more not named here
ravel_hash_vec 12 other papers
9 dated earlier, 1 the same month, 2 later
2205.10528 (2022-05)
PointVector: A Vector Representation In Point Cloud Analysis
2211.15654 (2022-11)
OpenScene: 3D Scene Understanding with Open Vocabularies
2212.02011 (2022-12)
PointCaM: Cut-and-Mix for Open-Set Point Cloud Learning
and 9 more not named here
M 6 other papers
5 dated earlier, 1 later
2004.11540 (2020-04)
Deep Global Registration
2211.15654 (2022-11)
OpenScene: 3D Scene Understanding with Open Vocabularies
2305.02893 (2023-05)
APR: Online Distant Point Cloud Registration through Aggregated Point Cloud Reconstruction
and 3 more not named here
build_sam2 4 other papers
4 the same month
2408.00874 (2024-08)
Medical SAM 2: Segment medical images as video via Segment Anything Model 2
2408.02635 (2024-08)
Interactive 3D Medical Image Segmentation with SAM 2
2408.03286 (2024-08)
Biomedical SAM 2: Segment Anything in Biomedical Images and Videos
and 1 more not named here
build_sam2_video_predictor 3 other papers
3 the same month
2408.02635 (2024-08)
Interactive 3D Medical Image Segmentation with SAM 2
2408.03286 (2024-08)
Biomedical SAM 2: Segment Anything in Biomedical Images and Videos
2408.08870 (2024-08)
SAM2-UNet: Segment Anything 2 Makes Strong Encoder for Natural and Medical Image Segmentation
build_sam2_hf 2 other papers
1 the same month, 1 later
2408.07931 (2024-08)
Surgical SAM 2: Real-time Segment Anything in Surgical Video by Efficient Frame Pruning
2501.13667 (2025-01)
MPG-SAM 2: Adapting SAM 2 with Mask Priors and Global Context for Referring Video Object Segmentation

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-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We introduce SAM2Point, a preliminary exploration adapting Segment Anything Model 2 (SAM 2) for zero-shot and promptable 3D segmentation. SAM2Point interprets any 3D data as a series of multi-directional videos, and leverages SAM 2 for 3D-space segmentation, without further training or 2D-3D projection. Our framework supports various prompt types, including 3D points, boxes, and masks, and can generalize across diverse scenarios, such as 3D objects, indoor scenes, outdoor environments, and raw sparse LiDAR. Demonstrations on multiple 3D datasets, e.g., Objaverse, S3DIS, ScanNet, Semantic3D, and KITTI, highlight the robust generalization capabilities of SAM2Point. To our best knowledge, we present the most faithful implementation of SAM in 3D, which may serve as a starting point for future research in promptable 3D segmentation. Online Demo: https://huggingface.co/spaces/ZiyuG/SAM2Point . Code: https://github.com/ZiyuGuo99/SAM2Point .

For agents

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

get_harvested_code_for_paper("2408.16768")
get_code_for_paper("2408.16768")
have("2408.16768")

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

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

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

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

Connect an agent — have() is free.