SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.10159 · ECCV · 2024

RAPiD-Seg: Range-Aware Pointwise Distance Distribution Networks for 3D LiDAR Segmentation

Li Li, Hubert Shum, Toby Breckon, Uniseg Lidarmultinet

arXiv · PDF · Open in the Atlas

Code that ran

5 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 4 failures of our instrument; 1 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/2407.10159.json · badge: /api/ran/2407.10159.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
l1997i/rapid_seg marked official in Papers with Code
Papers with Code archive
5 ran · 1 no recorded run
FunctionStatusWhere it lives
RAPiDConfig Ran
ran on a synthesized input · constructed an object; no result was computed
l1997i/rapid_seg/rapid_seg/models/rapid_features.py
code served (permissive licence) · get_code("de9852fb332c6e3d")
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 an instance of its own class, RAPiDConfig: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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)

ARGS = {
    'k_near': 10,
    'k_mid': 7,
    'k_far': 5,
    'r_near': 20.0,
    'r_mid': 35.0,
    'num_beams': 64,
    'delta': 0.9,
    'eps': 1e-09,
    'device': 'cpu',
    'batch_size': 32,
    'precision': 'float32',
}
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 RAPiDConfig — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a RAPiDConfig 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
_pdd_within_group Ran
ran; our contract draft was wrong, not the code
l1997i/rapid_seg/rapid_seg/models/rapid_features.py
code served (permissive licence) · get_code("e4133796da4c08df")
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 torch

torch.manual_seed(0)

# Create small tensors for testing
# xyz: (n, 3) - 3D coordinates, n=4 points
xyz = torch.randn(4, 3, dtype=torch.float32)

# reflect: (n,) - reflectivity values for each point
reflect = torch.randn(4, dtype=torch.float32)

# k_per_point: (n,) - number of neighbors to keep for each point
k_per_point = torch.tensor([2, 3, 2, 1], dtype=torch.long)

# k_max: int - maximum number of neighbors to consider
k_max = 3

ARGS = {
    "xyz": xyz,
    "reflect": reflect,
    "k_per_point": k_per_point,
    "k_max": k_max,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 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
_range_bucket_k Ran
ran; our contract draft was wrong, not the code
l1997i/rapid_seg/rapid_seg/models/rapid_features.py
code served (permissive licence) · get_code("282786ead0511c71")
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 int, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 dataclasses import dataclass

torch.manual_seed(0)

@dataclass
class RAPiDConfig:
    """RAPiD feature configuration (also the top-level ``rapid_seg`` config).

    ``k_near/k_mid/k_far`` are the range-aware neighbour counts (SemanticKITTI
    default 10/7/5; nuScenes 8/6/3). ``k_close`` is an alias of ``k_near``.
    ``device`` accepts ``"auto"`` (CUDA -> MPS -> CPU), ``"cuda"`` or ``"cpu"``.
    """
    k_near: int = 10
    k_mid: int = 7
    k_far: int = 5
    r_near: float = 20.0
    r_mid: float = 35.0
    num_beams: int = 64
    delta: float = 0.9
    eps: float = 1e-09
    device: str = 'auto'
    batch_size: int = 32
    precision: str = 'float32'

    @property
    def k_max(self) -> int:
        return max(self.k_near, self.k_mid, self.k_far)

    @property
    def k_close(self) -> int:
        """Alias for ``k_near`` (close-range neighbour count)."""
        return self.k_near

    def get_k_for_standard_rapid(self) -> int:
        """Neighbour count used by non range-aware (standard) RAPiD."""
        return self.k_mid

    def resolved_device(self) -> str:
        """Concrete device string, resolving ``"auto"``."""
        if self.device != 'auto':
            return self.device
        return 'cpu'

def _range_bucket_k(rng: torch.Tensor, cfg: RAPiDConfig) -> torch.Tensor:
    """Map each point's range to its neighbour count k (Sec. 3.1)."""
    k = torch.full_like(rng, cfg.k_far, dtype=torch.long)
    k = torch.where(rng < cfg.r_mid, torch.tensor(cfg.k_mid, device=rng.device), k)
    k = torch.where(rng < cfg.r_near, torch.tensor(cfg.k_near, device=rng.device), k)
    return k

# Create test arguments
rng = torch.tensor([[15.0, 25.0, 30.0, 40.0],
                     [10.0, 22.0, 38.0, 50.0]], dtype=torch.float32)

cfg = RAPiDConfig(
    k_near=10,
    k_mid=7,
    k_far=5,
    r_near=20.0,
    r_mid=35.0,
    device='cpu'
)

ARGS = {
    'rng': rng,
    'cfg': cfg
}
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 int, 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
assign_rings Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
l1997i/rapid_seg/rapid_seg/models/rapid_features.py
code served (permissive licence) · get_code("337be694d0a3aa5b")
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 1, dtype family int, shape (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

torch.manual_seed(0)

# Create a small batch of 3D points (xyz coordinates)
# Shape: (batch_size=4, 3) - 4 points in 3D space
xyz = torch.tensor([
    [1.0, 0.0, 0.5],
    [0.0, 1.0, 0.3],
    [1.0, 1.0, 0.8],
    [0.5, 0.5, 0.2]
], dtype=torch.float32)

num_beams = 8

ARGS = {
    "xyz": xyz,
    "num_beams": num_beams
}
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 1, dtype family int, shape (4,) — shape (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_rapid_frame Ran
ran; our contract draft was wrong, not the code
l1997i/rapid_seg/rapid_seg/models/rapid_features.py
code served (permissive licence) · get_code("5d0198cbf56e2497")
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, 10) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 dataclasses import dataclass

torch.manual_seed(0)

@dataclass
class RAPiDConfig:
    """RAPiD feature configuration (also the top-level ``rapid_seg`` config)."""
    k_near: int = 10
    k_mid: int = 7
    k_far: int = 5
    r_near: float = 20.0
    r_mid: float = 35.0
    num_beams: int = 64
    delta: float = 0.9
    eps: float = 1e-09
    device: str = 'cpu'
    batch_size: int = 32
    precision: str = 'float32'

    @property
    def k_max(self) -> int:
        return max(self.k_near, self.k_mid, self.k_far)

    @property
    def k_close(self) -> int:
        """Alias for ``k_near`` (close-range neighbour count)."""
        return self.k_near

    def get_k_for_standard_rapid(self) -> int:
        """Neighbour count used by non range-aware (standard) RAPiD."""
        return self.k_mid

    def resolved_device(self) -> str:
        """Concrete device string, resolving ``"auto"``."""
        if self.device != 'auto':
            return self.device
        return 'cpu'

# Create small test tensors
xyz = torch.randn(4, 3)  # 4 points, 3D coordinates
reflect = torch.randn(4)  # 4 reflectivity values
group_id = torch.tensor([0, 0, 1, 1], dtype=torch.long)  # 2 groups

# Create config
cfg = RAPiDConfig(
    k_near=10,
    k_mid=7,
    k_far=5,
    r_near=20.0,
    r_mid=35.0,
    delta=0.9,
    eps=1e-09,
    device='cpu'
)

ARGS = {
    'xyz': xyz,
    'reflect': reflect,
    'group_id': group_id,
    'cfg': cfg
}
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, 10) — shape (4, 10) 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_r_rapid Not yet run
unverified (harvested, no recorded run)
l1997i/rapid_seg/rapid_seg/models/rapid_features.py
code served (permissive licence) · get_code("8945be632d84eb04")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 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.

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 point clouds play a pivotal role in outdoor scene perception, especially in the context of autonomous driving. Recent advancements in 3D LiDAR segmentation often focus intensely on the spatial positioning and distribution of points for accurate segmentation. However, these methods, while robust in variable conditions, encounter challenges due to sole reliance on coordinates and point intensity, leading to poor isometric invariance and suboptimal segmentation. To tackle this challenge, our work introduces Range-Aware Pointwise Distance Distribution (RAPiD) features and the associated RAPiD-Seg architecture. Our RAPiD features exhibit rigid transformation invariance and effectively adapt to variations in point density, with a design focus on capturing the localized geometry of neighboring structures. They utilize inherent LiDAR isotropic radiation and semantic categorization for enhanced local representation and computational efficiency, while incorporating a 4D distance metric that integrates geometric and surface material reflectivity for improved semantic segmentation. To effectively embed high-dimensional RAPiD features, we propose a double-nested autoencoder structure with a novel class-aware embedding objective to encode high-dimensional features into manageable voxel-wise embeddings. Additionally, we propose RAPiD-Seg which incorporates a channel-wise attention fusion and two effective RAPiD-Seg variants, further optimizing the embedding for enhanced performance and generalization. Our method outperforms contemporary LiDAR segmentation work in terms of mIoU on SemanticKITTI (76.1) and nuScenes (83.6) datasets.

For agents

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

get_harvested_code_for_paper("2407.10159")
get_code_for_paper("2407.10159")
have("2407.10159")

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

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

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

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

Connect an agent — have() is free.