SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2411.07184 · 2024

SAMPart3D: Segment Any Part in 3D Objects

arXiv · PDF · Open in the Atlas

Code that ran

10 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 9 have no contract verdict; 1 failure of our instrument; 0 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/2411.07184.json · badge: /api/ran/2411.07184.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/sampart3d community (classifier label)
classifier basis not recorded on the link
10 ran · 0 no recorded run
FunctionStatusWhere it lives
collate_fn Ran
ran; our contract draft was wrong, not the code
pointcept/sampart3d/pointcept/datasets/utils.py
code served (permissive licence) · get_code("19bb15293db3cd76")
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 (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 torch
from collections.abc import Mapping, Sequence

torch.manual_seed(0)

# Test case 1: batch of Tensors
batch_tensors = [torch.randn(2, 4), torch.randn(2, 4)]

# Test case 2: batch of strings
batch_strings = ["hello", "world"]

# Test case 3: batch of Sequences (lists with coord tensors)
batch_sequences = [
    [torch.randn(3, 4), torch.randn(3, 2)],
    [torch.randn(5, 4), torch.randn(5, 2)]
]

# Test case 4: batch of Mappings (dicts with 'coord' and 'offset')
batch_mappings = [
    {
        'coord': torch.randn(3, 4),
        'features': torch.randn(3, 2),
        'offset': torch.tensor([3])
    },
    {
        'coord': torch.randn(5, 4),
        'features': torch.randn(5, 2),
        'offset': torch.tensor([5])
    }
]

# Use the tensor batch as the main test case
ARGS = {
    'batch': batch_tensors
}
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 (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
collate_fn_dummy Ran
ran on a synthesized input
pointcept/sampart3d/pointcept/datasets/utils.py
code served (permissive licence) · get_code("45472375cc003465")
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. 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 torch.nn as nn

torch.manual_seed(0)

# The function takes a batch parameter and returns it as-is
# batch is typically a list of samples from a dataset
# For a collate function, this would be called by a DataLoader
# We'll create a simple batch of tuples (x, y) as is common in ML

batch = [
    (torch.randn(4, 3), torch.tensor(0)),
    (torch.randn(4, 3), torch.tensor(1)),
]

ARGS = {
    "batch": batch
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list 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
compute_ap Ran
ran on a synthesized input
pointcept/sampart3d/PartObjaverse-Tiny/eval/eval_instance.py
code served (permissive licence) · get_code("678b57678d48a11d")
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

# This function computes Average Precision from true positives, false positives, and ground truth count
# tp: array of true positives (binary detections)
# fp: array of false positives (binary detections)
# gt_npos: total number of ground truth positives (scalar)
# n_bins: number of bins for AP calculation (default 100)

# Create realistic small test data
np.random.seed(0)

# tp and fp should be 1D arrays of equal length representing detections
# Let's create 50 detections with some being true positives and some false positives
num_detections = 50
tp = np.random.randint(0, 2, size=num_detections)  # Binary array of true positives
fp = 1 - tp  # Complementary false positives (if not TP, then FP)

# gt_npos should be the total number of ground truth positive objects
# This should be at least the sum of true positives
gt_npos = int(np.sum(tp)) + 5  # Total ground truth positives (some may not be detected)

# n_bins parameter for AP calculation
n_bins = 100

ARGS = {
    'tp': tp,
    'fp': fp,
    'gt_npos': gt_npos,
    'n_bins': n_bins
}
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_iou Ran
ran on a synthesized input
pointcept/sampart3d/PartObjaverse-Tiny/eval/eval_part.py
code served (permissive licence) · get_code("bfcfa7e485c98dc3")
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 small binary prediction and ground truth masks
pred = np.array([[1, 0, 1, 0],
                 [0, 1, 1, 0]], dtype=bool)

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

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
eval_per_shape_mean_ap Ran
ran on a synthesized input
pointcept/sampart3d/PartObjaverse-Tiny/eval/eval_instance.py
code served (permissive licence) · get_code("61978c0af7c47c9e")
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

# Set random seeds for reproducibility
np.random.seed(0)

# Create small synthetic data for testing
# We need:
# - part_name_list: List of part names
# - pred_sem: predicted semantic labels (array of shape N)
# - pred_ins: predicted instance labels (array of shape N)
# - gt_sem: ground truth semantic labels (array of shape N)
# - gt_ins: ground truth instance labels (array of shape N)
# - iou_threshold: float threshold for IoU

# Number of voxels/points
n_points = 100

# Number of semantic classes (3 parts)
n_classes = 3
part_name_list = ["part_0", "part_1", "part_2"]

# Create ground truth semantic and instance labels
gt_sem = np.array([i % n_classes for i in range(n_points)], dtype=np.int32)
# Create instance labels (4 instances total, distributed among points)
gt_ins = np.array([i % 4 for i in range(n_points)], dtype=np.int32)

# Create predicted semantic and instance labels (slightly different from GT)
pred_sem = np.array([(i + 1) % n_classes for i in range(n_points)], dtype=np.int32)
# Create predicted instance labels (4 instances, some overlap with GT)
pred_ins = np.array([i % 4 for i in range(n_points)], dtype=np.int32)

# Set iou_threshold
iou_threshold = 0.5

ARGS = {
    "part_name_list": part_name_list,
    "pred_sem": pred_sem,
    "pred_ins": pred_ins,
    "gt_sem": gt_sem,
    "gt_ins": gt_ins,
    "iou_threshold": iou_threshold,
}
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
eval_per_shape_mean_iou Ran
ran on a synthesized input
pointcept/sampart3d/PartObjaverse-Tiny/eval/eval_semantic.py
code served (permissive licence) · get_code("e02a40b4d6a17260")
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 small test data
# part_name_list: list of part names
part_name_list = ["part_0", "part_1", "part_2"]

# pred_sem: predicted semantic segmentation (shape: height x width)
# Contains class indices 0, 1, 2, etc.
pred_sem = np.array([
    [0, 1, 2, 0],
    [1, 2, 0, 1]
], dtype=np.int32)

# gt_sem: ground truth semantic segmentation (same shape as pred_sem)
# Contains class indices 0, 1, 2, etc.
gt_sem = np.array([
    [0, 1, 1, 0],
    [1, 2, 2, 1]
], dtype=np.int32)

ARGS = {
    "part_name_list": part_name_list,
    "pred_sem": pred_sem,
    "gt_sem": gt_sem,
}
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
eval_per_shape_part_mean_iou Ran
ran on a synthesized input
pointcept/sampart3d/PartObjaverse-Tiny/eval/eval_part.py
code served (permissive licence) · get_code("9509aa26e8296570")
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

# Construct valid arguments for eval_per_shape_part_mean_iou
# The function expects:
# - pred_ins: np.ndarray of instance IDs (with -1 for unlabeled)
# - gt_ins: np.ndarray of ground truth instance IDs (with -1 for unlabeled)

# Create sample prediction instance segmentation array
# Values represent instance IDs, -1 represents unlabeled/background
pred_ins = np.array([
    [0, 0, 1, 1],
    [0, 0, 1, 1],
    [2, 2, -1, -1],
    [2, 2, -1, -1]
], dtype=np.int32)

# Create sample ground truth instance segmentation array
gt_ins = np.array([
    [0, 0, 0, 1],
    [0, 0, 1, 1],
    [2, 2, 2, -1],
    [2, 2, 2, -1]
], dtype=np.int32)

ARGS = {
    "pred_ins": pred_ins,
    "gt_ins": gt_ins
}
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
gen_pcd Ran
ran on a synthesized input
pointcept/sampart3d/pointcept/datasets/sampart3d_util.py
code served (permissive licence) · get_code("de47cb7d79292851")
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 (11, 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 math

# Create small, valid test data for gen_pcd function

# depth: should be a 2D array (h, w) with depth values
# Create a 4x3 depth map with some valid depths and one invalid (>= 65500)
depth = np.array([
    [1000.0, 2000.0, 3000.0],
    [1500.0, 2500.0, 65500.0],
    [1200.0, 2200.0, 3200.0],
    [1800.0, 2800.0, 3500.0]
], dtype=np.float32)

# c2w_opengl: 4x4 camera-to-world transformation matrix (OpenGL convention)
# This should be a numpy array that can be transposed and used in matrix multiplication
c2w_opengl = np.array([
    [1.0, 0.0, 0.0, 0.0],
    [0.0, 1.0, 0.0, 0.0],
    [0.0, 0.0, 1.0, 5.0],
    [0.0, 0.0, 0.0, 1.0]
], dtype=np.float32)

# camera_angle_x: horizontal field of view in radians
camera_angle_x = math.pi / 4  # 45 degrees

ARGS = {
    "depth": depth,
    "c2w_opengl": c2w_opengl,
    "camera_angle_x": camera_angle_x
}
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 (11, 3) — shape (11, 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
get_ray_directions Ran
ran on a synthesized input
pointcept/sampart3d/pointcept/datasets/sampart3d_util.py
code served (permissive licence) · get_code("208dc499490fc976")
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 3, dtype family float, shape (480, 640, 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

# Define ARGS dictionary with valid arguments for get_ray_directions
ARGS = {
    'W': 640,           # image width (int)
    'H': 480,           # image height (int)
    'fx': 500.0,        # focal length x (float)
    'fy': 500.0,        # focal length y (float)
    'cx': 320.0,        # principal point x (float)
    'cy': 240.0,        # principal point y (float)
    'use_pixel_centers': True  # boolean flag
}
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 3, dtype family float, shape (480, 640, 3) — shape (480, 640, 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
point_collate_fn Ran
ran on a synthesized input
pointcept/sampart3d/pointcept/datasets/utils.py
code served (permissive licence) · get_code("4625db45fd6535fc")
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 torch
import random
from collections.abc import Mapping

torch.manual_seed(0)

# Create a batch of point cloud data
# Each item is a dict with 'coord' and 'offset' keys
batch = [
    {
        'coord': torch.randn(3, 4),  # 3 points, 4 features
        'offset': torch.tensor([3])   # offset for this sample
    },
    {
        'coord': torch.randn(2, 4),  # 2 points, 4 features
        'offset': torch.tensor([2])   # offset for this sample
    }
]

ARGS = {
    'batch': batch,
    'mix_prob': 0.5
}
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 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

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 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
collate_fn 1 other paper
1 dated earlier
2408.10537 (2024-08)
Subspace Prototype Guidance for Mitigating Class Imbalance in Point Cloud Semantic 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-23.

Repositories linked to this paper

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

Abstract

3D part segmentation is a crucial and challenging task in 3D perception, playing a vital role in applications such as robotics, 3D generation, and 3D editing. Recent methods harness the powerful Vision Language Models (VLMs) for 2D-to-3D knowledge distillation, achieving zero-shot 3D part segmentation. However, these methods are limited by their reliance on text prompts, which restricts the scalability to large-scale unlabeled datasets and the flexibility in handling part ambiguities. In this work, we introduce SAMPart3D, a scalable zero-shot 3D part segmentation framework that segments any 3D object into semantic parts at multiple granularities, without requiring predefined part label sets as text prompts. For scalability, we use text-agnostic vision foundation models to distill a 3D feature extraction backbone, allowing scaling to large unlabeled 3D datasets to learn rich 3D priors. For flexibility, we distill scale-conditioned part-aware 3D features for 3D part segmentation at multiple granularities. Once the segmented parts are obtained from the scale-conditioned part-aware 3D features, we use VLMs to assign semantic labels to each part based on the multi-view renderings. Compared to previous methods, our SAMPart3D can scale to the recent large-scale 3D object dataset Objaverse and handle complex, non-ordinary objects. Additionally, we contribute a new 3D part segmentation benchmark to address the lack of diversity and complexity of objects and parts in existing benchmarks. Experiments show that our SAMPart3D significantly outperforms existing zero-shot 3D part segmentation methods, and can facilitate various applications such as part-level editing and interactive segmentation.

For agents

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

get_harvested_code_for_paper("2411.07184")
get_code_for_paper("2411.07184")
have("2411.07184")

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

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

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

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

Connect an agent — have() is free.