SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.18469 · CVPR · 2024

Density-guided Translator Boosts Synthetic-to-Real Unsupervised Domain Adaptive Segmentation of 3D Point Clouds

Cheng Wang, Weiquan Liu, Ming Cheng, Zhimin Yuan, Yulan Guo, Wankang Zeng, Yanfei Su

arXiv · PDF · Open in the Atlas

Code that ran

9 of 9 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; 3 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 5 failures of our instrument; 0 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/2403.18469.json · badge: /api/ran/2403.18469.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
yuan-zm/DGT-ST canonical (classifier label)
classifier basis: census
9 ran · 0 no recorded run
FunctionStatusWhere it lives
adjust_learning_rate Ran
ran, honoured the contract we drafted
yuan-zm/DGT-ST/network/lr_adjust.py
code served (permissive licence) · get_code("558d7686e41507e4")
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 float, 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 torch

torch.manual_seed(0)

# Based on the function signature and body:
# adjust_learning_rate(lr, i_iter, max_iter, PREHEAT_STEPS)
# 
# Parameters:
# - lr: a float representing base learning rate
# - i_iter: an int representing current iteration
# - max_iter: an int representing maximum iterations
# - PREHEAT_STEPS: an int representing warmup steps

ARGS = {
    "lr": 0.01,
    "i_iter": 5,
    "max_iter": 100,
    "PREHEAT_STEPS": 10
}
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 float, 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
change_Config_DEBUG Ran
ran; our contract draft was wrong, not the code
yuan-zm/DGT-ST/train_DGT_ST.py
code served (permissive licence) · get_code("6fb3d0b7c21a351d")
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 Config. 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

class Config:
    def __init__(self):
        self.TRAIN = TrainConfig()
        self.DEBUG = DebugConfig()
        self.TGT_LOSS = TgtLossConfig()
        self.PROTOTYPE = PrototypeConfig()
        self.MEAN_TEACHER = MeanTeacherConfig()

class TrainConfig:
    def __init__(self):
        self.T_VAL_ITER = 100
        self.S_VAL_ITER = 50
        self.LOG_PERIOD = 10
        self.PREHEAT_STEPS = 5
        self.EXP_NAME = "default_exp"
        self.STAGE = "stage_1_PCAN"

class DebugConfig:
    def __init__(self):
        self.T_VAL_ITER = 20
        self.S_VAL_ITER = 10
        self.LOG_PERIOD = 2
        self.PREHEAT_STEPS = 1
        self.EXP_NAME = "debug_exp"
        self.AUX_LOSS_START_ITER = 5
        self.PROTO_UPDATE_PERIOD = 3
        self.T_THRE_ZERO_ITER = 7

class TgtLossConfig:
    def __init__(self):
        self.AUX_LOSS_START_ITER = 100
        self.cal_start_iter = 0

class PrototypeConfig:
    def __init__(self):
        self.PROTO_UPDATE_PERIOD = 50

class MeanTeacherConfig:
    def __init__(self):
        self.T_THRE_ZERO_ITER = 100

cfg = Config()

ARGS = {
    "cfg": cfg
}
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 Config — a Config output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Config 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
get_specific_beam_mask Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yuan-zm/DGT-ST/dgt_utils/check_Chosed_beam_label_sp.py
code served (permissive licence) · get_code("dc27030cd2b7e51e")
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 1, dtype family float, shape (8,) 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 sample data for the function
# beamLabel: array of labels for each beam (should be 1D)
# choseLabel: array of labels we want to filter by

beamLabel = np.array([1, 2, 1, 3, 2, 1, 4, 3])
choseLabel = np.array([1, 3])

ARGS = {
    "beamLabel": beamLabel,
    "choseLabel": choseLabel
}
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 1, dtype family float, shape (8,) — shape (8,) 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
iou Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yuan-zm/DGT-ST/network/lov_loss.py
code served (permissive licence) · get_code("d94639b28b2134ff")
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 1, dtype family float, 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 numpy as np
import torch

torch.manual_seed(0)

# Construct valid arguments for the iou function
# preds: prediction array/tensor with class indices
# labels: ground truth array/tensor with class indices
# C: number of classes
# EMPTY: value to return for empty unions (default 1.0)
# ignore: class index to ignore (default None)
# per_image: whether to compute per-image IoU (default False)

# Create small prediction and label arrays
# Using shape (2, 4) - batch of 2, spatial dimension of 4
preds = np.array([[0, 1, 2, 3],
                   [1, 2, 0, 1]], dtype=np.int64)

labels = np.array([[0, 1, 1, 3],
                    [1, 2, 2, 1]], dtype=np.int64)

# Number of classes
C = 4

# EMPTY value for classes with no union
EMPTY = 1.0

# Class to ignore during computation
ignore = None

# Whether to compute per-image IoU
per_image = False

ARGS = {
    "preds": preds,
    "labels": labels,
    "C": C,
    "EMPTY": EMPTY,
    "ignore": ignore,
    "per_image": per_image
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, 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
iou_binary Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yuan-zm/DGT-ST/network/lov_loss.py
code served (permissive licence) · get_code("1211530cd527bd0b")
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 float, 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 numpy as np

def isnan(x):
    return x != x

def mean(l, ignore_nan=False, empty=0):
    """
    nanmean compatible with generators.
    """
    l = iter(l)
    if ignore_nan:
        from itertools import filterfalse
        l = filterfalse(isnan, l)
    try:
        n = 1
        acc = next(l)
    except StopIteration:
        if empty == 'raise':
            raise ValueError('Empty mean')
        return empty
    for n, v in enumerate(l, 2):
        acc += v
    if n == 1:
        return acc
    return acc / n

def iou_binary(preds, labels, EMPTY=1.0, ignore=None, per_image=True):
    """
    IoU for foreground class
    binary: 1 foreground, 0 background
    """
    if not per_image:
        preds, labels = ((preds,), (labels,))
    ious = []
    for pred, label in zip(preds, labels):
        intersection = ((label == 1) & (pred == 1)).sum()
        union = ((label == 1) | (pred == 1) & (label != ignore)).sum()
        if not union:
            iou = EMPTY
        else:
            iou = float(intersection) / float(union)
        ious.append(iou)
    iou = mean(ious)
    return 100 * iou

# Setup code
np.random.seed(0)

# Create small prediction and label arrays for binary segmentation
# Shape: (height=4, width=3) for two images
preds_img1 = np.array([[0, 1, 1],
                       [1, 1, 0],
                       [0, 1, 1],
                       [1, 0, 0]], dtype=np.int32)

labels_img1 = np.array([[0, 1, 0],
                        [1, 1, 1],
                        [0, 1, 0],
                        [1, 0, 1]], dtype=np.int32)

preds_img2 = np.array([[1, 1, 0],
                       [0, 1, 1],
                       [1, 1, 0],
                       [0, 0, 1]], dtype=np.int32)

labels_img2 = np.array([[1, 0, 0],
                        [0, 1, 1],
                        [1, 0, 0],
                        [0, 1, 1]], dtype=np.int32)

# Arguments for iou_binary function
ARGS = {
    'preds': np.array([preds_img1, preds_img2]),
    'labels': np.array([labels_img1, labels_img2]),
    'EMPTY': 1.0,
    'ignore': 0,
    'per_image': True,
}
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 float, 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
load_label Ran
ran; our contract draft was wrong, not the code
yuan-zm/DGT-ST/eval_performance.py
code served (permissive licence) · get_code("89cdbfea9999106d")
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 os
import tempfile
import shutil

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()

# Create subdirectories and files matching the expected structure
for seq_num in [1, 2]:
    seq_dir = os.path.join(temp_dir, f'{seq_num:02d}')
    os.makedirs(seq_dir, exist_ok=True)
    
    sub_dir = os.path.join(seq_dir, 'labels')
    os.makedirs(sub_dir, exist_ok=True)
    
    # Create some dummy label files
    for i in range(2):
        label_file = os.path.join(sub_dir, f'label_{i}.txt')
        with open(label_file, 'w') as f:
            f.write(f'dummy label {i}')

ARGS = {
    'data_root': temp_dir,
    'sequences': [1, 2],
    'sub_dir_name': 'labels',
    'ext': '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 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
lovasz_grad Ran
ran, violated the contract we drafted
yuan-zm/DGT-ST/network/lov_loss.py
code served (permissive licence) · get_code("e85b5d21dc5b8382")
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 float, 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)

# gt_sorted should be a 1D tensor of binary/boolean values
# representing ground truth sorted by some error metric
# The function expects a tensor with sum(), float(), cumsum() methods
gt_sorted = torch.tensor([0, 0, 1, 1], dtype=torch.long)

ARGS = {
    "gt_sorted": gt_sorted
}
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 float, 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
lr_poly Ran
ran, honoured the contract we drafted
yuan-zm/DGT-ST/network/lr_adjust.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from lym29/DASeg, is pointer only (licence: NONE) · get_code("b3b7c1c716f4ca66")
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 lym29/DASeg, 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.

lr_warmup Ran
ran, honoured the contract we drafted
yuan-zm/DGT-ST/network/lr_adjust.py
code served (permissive licence) · get_code("aeba475616903383")
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 float, 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 torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# def lr_warmup(base_lr, iter, max_iter, warmup_iter):
#     return base_lr * (float(iter) / warmup_iter)
#
# Parameters:
# - base_lr: a learning rate value (float or numeric)
# - iter: current iteration number (int or numeric)
# - max_iter: maximum iteration number (int or numeric)
# - warmup_iter: warmup iteration number (int or numeric)

ARGS = {
    "base_lr": 0.1,
    "iter": 500,
    "max_iter": 10000,
    "warmup_iter": 1000,
}
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 float, 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

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 4 the same month, 3 later) and 4 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
lovasz_grad 40 other papers
29 dated earlier, 1 the same month, 8 later, 2 same year, order not determinable · 1 only as an assembly brick
1505.04597 (2015-05)
U-Net: Convolutional Networks for Biomedical Image Segmentation
1807.10165 (2018-07)
UNet++: A Nested U-Net Architecture for Medical Image Segmentation
1811.11721 (2018-11)
CCNet: Criss-Cross Attention for Semantic Segmentation
and 37 more not named here
iou 24 other papers
17 dated earlier, 1 the same month, 5 later, 1 same year, order not determinable
1807.10165 (2018-07)
UNet++: A Nested U-Net Architecture for Medical Image Segmentation
1811.11721 (2018-11)
CCNet: Criss-Cross Attention for Semantic Segmentation
2003.10778 (2020-03)
PanNuke Dataset Extension, Insights and Baselines
and 21 more not named here
iou_binary 24 other papers
17 dated earlier, 1 the same month, 5 later, 1 same year, order not determinable
1807.10165 (2018-07)
UNet++: A Nested U-Net Architecture for Medical Image Segmentation
1811.11721 (2018-11)
CCNet: Criss-Cross Attention for Semantic Segmentation
2003.10778 (2020-03)
PanNuke Dataset Extension, Insights and Baselines
and 21 more not named here
lr_poly 21 other papers
20 dated earlier, 1 the same month
1612.02646 (2016-12)
Learning Video Object Segmentation from Static Images
1702.01105 (2017-02)
Joint 2D-3D-Semantic Data for Indoor Scene Understanding
1703.01780 (2017-03)
Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results
and 18 more not named here
load_label 2 other papers
2 dated earlier
1911.11236 (2019-11)
RandLA-Net: Efficient Semantic Segmentation of Large-Scale Point Clouds
2204.09914 (2022-04)
CPGNet: Cascade Point-Grid Fusion Network for Real-Time LiDAR 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-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

3D synthetic-to-real unsupervised domain adaptive segmentation is crucial to annotating new domains. Selftraining is a competitive approach for this task, but its performance is limited by different sensor sampling patterns (i.e., variations in point density) and incomplete training strategies. In this work, we propose a density-guided translator (DGT), which translates point density between domains, and integrates it into a two-stage self-training pipeline named DGT-ST. First, in contrast to existing works that simultaneously conduct data generation and feature/output alignment within unstable adversarial training, we employ the non-learnable DGT to bridge the domain gap at the input level. Second, to provide a well-initialized model for self-training, we propose a category-level adversarial network in stage one that utilizes the prototype to prevent negative transfer. Finally, by leveraging the designs above, a domain-mixed self-training method with source-aware consistency loss is proposed in stage two to narrow the domain gap further. Experiments on two synthetic-to-real segmentation tasks (SynLiDAR → semanticKITTI and SynL-iDAR → semanticPOSS) demonstrate that DGT-ST outperforms state-of-the-art methods, achieving 9.4% and 4.3% mIoU improvements, respectively. Code is available at https://github.com/yuan-zm/DGT-ST.

For agents

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

get_harvested_code_for_paper("2403.18469")
get_code_for_paper("2403.18469")
have("2403.18469")

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

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

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

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

Connect an agent — have() is free.