SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.17707 · 2023

SAMPro3D: Locating SAM Prompts in 3D for Zero-Shot Instance Segmentation

arXiv · PDF · Open in the Atlas

Code that ran

12 of 16 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; 4 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 7 failures of our instrument; 4 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/2311.17707.json · badge: /api/ran/2311.17707.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
GAP-LAB-CUHK-SZ/SAMPro3D canonical (classifier label)
classifier basis: census
12 ran · 4 no recorded run
FunctionStatusWhere it lives
adjust_intrinsic Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
GAP-LAB-CUHK-SZ/SAMPro3D/dataset_preprocess/preprocess_util.py
code served (permissive licence) · get_code("c58cf40ab0e3d808")
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
import math

torch.manual_seed(0)

# The function adjust_intrinsic takes:
# - intrinsic: a tensor (camera intrinsic matrix, 3x3 is typical but function treats it as indexable [0,0], [1,1], [0,2], [1,2])
# - intrinsic_image_dim: tuple of (height, width) of original image
# - image_dim: tuple of (height, width) of target image

# Create a 3x3 intrinsic matrix (camera intrinsics)
intrinsic = torch.tensor([
    [500.0, 0.0, 320.0],
    [0.0, 500.0, 240.0],
    [0.0, 0.0, 1.0]
], dtype=torch.float32)

# Original image dimensions (height, width)
intrinsic_image_dim = (480, 640)

# Target image dimensions (height, width) - different from original
image_dim = (240, 320)

ARGS = {
    "intrinsic": intrinsic,
    "intrinsic_image_dim": intrinsic_image_dim,
    "image_dim": image_dim,
}
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
apply_coords_torch Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
GAP-LAB-CUHK-SZ/SAMPro3D/utils/sam_utils.py
code served (permissive licence) · get_code("96acf36f2bf2b19d")
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, 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
from copy import deepcopy

torch.manual_seed(0)

class MockPreprocessor:
    def __init__(self):
        self.target_length = 1024
    
    def get_preprocess_shape(self, old_h, old_w, target_length):
        # Simple mock: scale to target_length while maintaining aspect ratio
        scale = target_length / max(old_h, old_w)
        new_h = int(old_h * scale)
        new_w = int(old_w * scale)
        return new_h, new_w

# Create instance
preprocessor = MockPreprocessor()

# Create sample coordinates tensor with shape (2, 4, 2)
# Last dimension is 2 for (x, y) coordinates
coords = torch.tensor([
    [[10.0, 20.0], [30.0, 40.0], [50.0, 60.0], [70.0, 80.0]],
    [[5.0, 15.0], [25.0, 35.0], [45.0, 55.0], [65.0, 75.0]]
], dtype=torch.float32)

# Original image size (H, W)
original_size = (100, 200)

ARGS = {
    "self": preprocessor,
    "coords": coords,
    "original_size": original_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, 2) — shape (2, 4, 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
area_from_rle Ran
ran, honoured the contract we drafted
GAP-LAB-CUHK-SZ/SAMPro3D/utils/sam_utils.py
code served (permissive licence) · get_code("715832a79a564641")
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 torch
import numpy as np

def area_from_rle(rle: dict) -> int:
    return sum(rle['counts'][1::2])

# The function expects:
# - rle: a dict with a 'counts' key
# - rle['counts'] should be indexable and support slicing [1::2]
# - The sliced result should be summable

# RLE (Run-Length Encoding) typically alternates between run lengths and values
# The function sums every other element starting from index 1
# This represents the sum of all "on" pixels in an RLE-encoded mask

ARGS = {
    'rle': {
        'counts': [5, 3, 2, 4, 1, 2]  # [run0_len, run1_len, run2_len, run3_len, run4_len, run5_len]
                                       # sum of indices 1,3,5 (1-indexed runs) = 3+4+2 = 9
    }
}
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 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
cal_iou Ran
ran, honoured the contract we drafted
GAP-LAB-CUHK-SZ/SAMPro3D/utils/vis_utils.py
code served (permissive licence) · get_code("7b2ed44d3cabdb55")
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 with the same shape
# These will be used to test the IoU calculation
pred = np.array([
    [1, 0, 1, 0],
    [1, 1, 0, 1]
], dtype=int)

gt = np.array([
    [1, 1, 0, 0],
    [1, 0, 0, 1]
], dtype=int)

ARGS = {
    "pred": pred,
    "gt": gt
}
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
compute_mapping Ran
ran; our contract draft was wrong, not the code
GAP-LAB-CUHK-SZ/SAMPro3D/utils/main_utils.py
code served (permissive licence) · get_code("0288cbb68dfd84b3")
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
import os
import tempfile
import cv2

# Create a temporary directory structure to avoid file I/O errors
temp_dir = tempfile.mkdtemp()
data_path = temp_dir

# Create scene structure
scene_name = 'test_scene'
scene_dir = os.path.join(data_path, scene_name)
os.makedirs(os.path.join(scene_dir, 'depth'), exist_ok=True)
os.makedirs(os.path.join(scene_dir, 'pose'), exist_ok=True)

# Create intrinsics.txt
intrinsics = np.array([
    [500.0, 0.0, 320.0, 0.0],
    [0.0, 500.0, 240.0, 0.0],
    [0.0, 0.0, 1.0, 0.0]
])
np.savetxt(os.path.join(data_path, 'intrinsics.txt'), intrinsics)

# Create a depth image (480x640)
depth_image = np.random.randint(100, 1000, size=(480, 640), dtype=np.uint16)
frame_id = 'frame_000'
cv2.imwrite(os.path.join(scene_dir, 'depth', frame_id + '.png'), depth_image)

# Create a pose matrix (4x4 identity)
pose = np.eye(4)
np.savetxt(os.path.join(scene_dir, 'pose', frame_id + '.txt'), pose)

# Create points in world coordinates (N x 3)
points = np.array([
    [0.1, 0.2, 2.0],
    [0.0, 0.0, 3.0],
    [-0.1, -0.2, 2.5],
    [0.3, 0.4, 1.5]
], dtype=np.float32)

ARGS = {
    'points': points,
    'data_path': data_path,
    'scene_name': scene_name,
    'frame_id': frame_id
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, 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
grouping Ran
ran; our contract draft was wrong, not the code
GAP-LAB-CUHK-SZ/SAMPro3D/libs/pointops/functions/grouping.py
code served (permissive licence) · get_code("16d72a87054ccef6")
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, 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)

# Create index tensor: shape (m, nsample)
# idx contains indices into the feature/xyz arrays
idx = torch.tensor([[0, 1, 0, 1], [1, 0, 1, 0]], dtype=torch.long)
m, nsample = idx.shape

# Create feature tensor: shape (n_points, c) where n_points >= max(idx) + 1
feat = torch.randn(2, 4, dtype=torch.float32).contiguous()

# Create xyz tensor: shape (n_points, 3)
xyz = torch.randn(2, 3, dtype=torch.float32).contiguous()

# Create new_xyz tensor: shape (m, 3)
new_xyz = torch.randn(m, 3, dtype=torch.float32).contiguous()

# with_xyz flag
with_xyz = True

ARGS = {
    "idx": idx,
    "feat": feat,
    "xyz": xyz,
    "new_xyz": new_xyz,
    "with_xyz": with_xyz
}
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, 7) — shape (2, 4, 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
load_ply Ran
ran, honoured the contract we drafted
GAP-LAB-CUHK-SZ/SAMPro3D/utils/main_utils.py
code served (permissive licence) · get_code("5d9ad393128524ec")
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 plyfile
import tempfile
import os

# Create a temporary PLY file for testing
def create_test_ply():
    # Create vertex data
    vertex_count = 5
    vertex_data = np.zeros(vertex_count, dtype=[('x', 'f4'), ('y', 'f4'), ('z', 'f4'), 
                                                  ('red', 'u1'), ('green', 'u1'), ('blue', 'u1')])
    
    vertex_data['x'] = np.array([1.0, 2.0, 3.0, 4.0, 5.0])
    vertex_data['y'] = np.array([1.5, 2.5, 3.5, 4.5, 5.5])
    vertex_data['z'] = np.array([0.5, 1.5, 2.5, 3.5, 4.5])
    vertex_data['red'] = np.array([255, 200, 150, 100, 50])
    vertex_data['green'] = np.array([100, 120, 140, 160, 180])
    vertex_data['blue'] = np.array([50, 75, 100, 125, 150])
    
    # Create PlyElement
    vertex_el = plyfile.PlyElement.describe(vertex_data, 'vertex')
    ply_data = plyfile.PlyData([vertex_el])
    
    # Write to temporary file
    temp_file = tempfile.NamedTemporaryFile(suffix='.ply', delete=False)
    temp_path = temp_file.name
    temp_file.close()
    ply_data.write(temp_path)
    
    return temp_path

ply_path = create_test_ply()

ARGS = {
    'ply_path': ply_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, plyfile — 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
make_intrinsic Ran
ran, honoured the contract we drafted
GAP-LAB-CUHK-SZ/SAMPro3D/dataset_preprocess/preprocess_util.py
code served (permissive licence) · get_code("6385efe2f5a14a24")
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 (4, 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 numpy as np

# The function creates a 4x4 intrinsic camera matrix
# Parameters are focal lengths (fx, fy) and principal point (mx, my)
# All are scalar floats representing camera calibration values

ARGS = {
    "fx": 500.0,
    "fy": 500.0,
    "mx": 320.0,
    "my": 240.0,
}
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 float, shape (4, 4) — shape (4, 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
map_label_image Ran
ran; our contract draft was wrong, not the code
GAP-LAB-CUHK-SZ/SAMPro3D/dataset_preprocess/preprocess_2d_scannet.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
read_label_mapping Ran
ran; our contract draft was wrong, not the code
GAP-LAB-CUHK-SZ/SAMPro3D/dataset_preprocess/preprocess_2d_scannet.py
code served (permissive licence) · get_code("38550edff36aa8dd")
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 os
import csv
import tempfile

# Create a temporary CSV file with label mapping data
temp_dir = tempfile.mkdtemp()
temp_csv = os.path.join(temp_dir, 'label_mapping.tsv')

with open(temp_csv, 'w', newline='') as f:
    writer = csv.DictWriter(f, fieldnames=['raw_category', 'nyu40id'], delimiter='\t')
    writer.writeheader()
    writer.writerow({'raw_category': 'wall', 'nyu40id': '1'})
    writer.writerow({'raw_category': 'floor', 'nyu40id': '2'})
    writer.writerow({'raw_category': 'cabinet', 'nyu40id': '4'})

ARGS = {
    'filename': temp_csv,
    'label_from': 'raw_category',
    'label_to': 'nyu40id'
}
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
represents_int Ran
ran, violated the contract we drafted
GAP-LAB-CUHK-SZ/SAMPro3D/dataset_preprocess/preprocess_2d_scannet.py
pointer only (licence: Apache-2.0); 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 (Apache-2.0), 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.

transform_pt_depth_scannet_torch Ran
ran; our contract draft was wrong, not the code
GAP-LAB-CUHK-SZ/SAMPro3D/utils/main_utils.py
code served (permissive licence) · get_code("62a58cd9338799e5")
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 small test tensors and values
device = 'cpu'

# points: N x 3 format (2 points, 3D coordinates)
points = torch.randn(2, 3, dtype=torch.float64)

# depth_intrinsic: 3x3 intrinsic matrix with additional columns for baseline
# The function accesses [0,0], [1,1], [0,2], [1,2], [0,3], [1,3]
# So we need at least 4 columns and 2 rows
depth_intrinsic = torch.tensor([
    [500.0, 0.0, 320.0, 0.05],
    [0.0, 500.0, 240.0, 0.05],
    [0.0, 0.0, 1.0, 0.0]
], dtype=torch.float64)

# depth: H x W format (small 480x640 depth map with reasonable values)
depth = torch.ones(480, 640, dtype=torch.float64) * 1000.0  # depth in millimeters

# pose: 4x4 transformation matrix (world to camera or camera to world)
pose = torch.eye(4, dtype=torch.float64)
pose[0:3, 3] = torch.tensor([0.1, 0.2, 0.3], dtype=torch.float64)

ARGS = {
    'points': points,
    'depth_intrinsic': depth_intrinsic,
    'depth': depth,
    'pose': pose,
    'device': device
}
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
box_xyxy_to_xywh Not yet run
unverified (harvested, no recorded run)
GAP-LAB-CUHK-SZ/SAMPro3D/utils/sam_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from vnlvi2k3/SC-SAM, is pointer only (licence: NONE) · get_code("7069d6e0ba7c409e")
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 vnlvi2k3/SC-SAM, 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.

interpolation Not yet run
unverified (harvested, no recorded run)
GAP-LAB-CUHK-SZ/SAMPro3D/libs/pointops/functions/interpolation.py
code served (permissive licence) · get_code("60bae3c637ca79fb")
How it ran

no invocation recorded.

show_iou Not yet run
unverified (harvested, no recorded run)
GAP-LAB-CUHK-SZ/SAMPro3D/utils/vis_utils.py
code served (permissive licence) · get_code("ee1cc0a38944cca5")
How it ran

no invocation recorded.

show_mask Not yet run
unverified (harvested, no recorded run)
GAP-LAB-CUHK-SZ/SAMPro3D/utils/vis_utils.py
code served (permissive licence) · get_code("b3917ab72449e04c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 7 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 1 the same month, 6 later) and 9 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
box_xyxy_to_xywh 7 other papers
3 dated earlier, 4 later
2305.10724 (2023-05)
Segment Any Anomaly without Training via Hybrid Prompt Regularization
2308.07624 (2023-08)
Self-Prompting Large Vision Models for Few-Shot Medical Image Segmentation
2309.06824 (2023-09)
Beyond Adapting SAM: Towards End-to-End Ultrasound Image Segmentation via Auto Prompting
and 4 more not named here
represents_int 7 other papers
3 dated earlier, 1 the same month, 3 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
2306.03908 (2023-06)
SAM3D: Segment Anything in 3D Scenes
and 4 more not named here
adjust_intrinsic 4 other papers
1 dated earlier, 3 later
2205.13490 (2022-05)
SemAffiNet: Semantic-Affine Transformation for Point Cloud Segmentation
2312.10671 (2023-12)
Open3DIS: Open-Vocabulary 3D Instance Segmentation with 2D Mask Guidance
2409.03757 (2024-09)
Lexicon3D: Probing Visual Foundation Models for Complex 3D Scene Understanding
and 1 more not named here
make_intrinsic 4 other papers
1 dated earlier, 3 later
2205.13490 (2022-05)
SemAffiNet: Semantic-Affine Transformation for Point Cloud Segmentation
2312.10671 (2023-12)
Open3DIS: Open-Vocabulary 3D Instance Segmentation with 2D Mask Guidance
2409.03757 (2024-09)
Lexicon3D: Probing Visual Foundation Models for Complex 3D Scene Understanding
and 1 more not named here
read_label_mapping 4 other papers
2 dated earlier, 2 later
1906.01140 (2019-06)
Learning Object Bounding Boxes for 3D Instance Segmentation on Point Clouds
2306.03908 (2023-06)
SAM3D: Segment Anything in 3D Scenes
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
area_from_rle 1 other paper
1 later
2501.13925 (2025-01)
GeoPixel: Pixel Grounding Large Multimodal Model in Remote Sensing
map_label_image 1 other paper
1 dated earlier
2306.03908 (2023-06)
SAM3D: Segment Anything in 3D Scenes

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

We introduce SAMPro3D for zero-shot instance segmentation of 3D scenes. Given the 3D point cloud and multiple posed RGB-D frames of 3D scenes, our approach segments 3D instances by applying the pretrained Segment Anything Model (SAM) to 2D frames. Our key idea involves locating SAM prompts in 3D to align their projected pixel prompts across frames, ensuring the view consistency of SAM-predicted masks. Moreover, we suggest selecting prompts from the initial set guided by the information of SAM-predicted masks across all views, which enhances the overall performance. We further propose to consolidate different prompts if they are segmenting different surface parts of the same 3D instance, bringing a more comprehensive segmentation. Notably, our method does not require any additional training. Extensive experiments on diverse benchmarks show that our method achieves comparable or better performance compared to previous zero-shot or fully supervised approaches, and in many cases surpasses human annotations. Furthermore, since our fine-grained predictions often lack annotations in available datasets, we present ScanNet200-Fine50 test data which provides fine-grained annotations on 50 scenes from ScanNet200 dataset. The project page can be accessed at https://mutianxu.github.io/sampro3d/.

For agents

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

get_harvested_code_for_paper("2311.17707")
get_code_for_paper("2311.17707")
have("2311.17707")

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

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

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

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

Connect an agent — have() is free.