SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1904.12304 · 2019

RL-GAN-Net: A Reinforcement Learning Agent Controlled GAN Network for Real-Time Point Cloud Shape Completion

arXiv · PDF · Open in the Atlas

Code that ran

6 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; 0 honoured the contract we drafted, 1 violated it and 3 have no contract verdict; 2 failures of our instrument; 3 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/1904.12304.json · badge: /api/ran/1904.12304.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
iSarmad/RL-GAN-Net community (classifier label)
classifier basis not recorded on the link
6 ran · 3 no recorded run
FunctionStatusWhere it lives
compute_iou Ran
ran on a synthesized input
iSarmad/RL-GAN-Net/GAN/models/lossess.py
code served (permissive licence) · get_code("f1eb659f7c048f5c")
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 torch
import numpy as np
import json
import os
import tempfile
from collections import OrderedDict

torch.manual_seed(0)

# Create a temporary directory for the mock dataroot
temp_dir = tempfile.mkdtemp()

# Create a mock part_color_mapping.json file
color_map = [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]] + [[0.5, 0.5, 0.5]] * 47
color_map_path = os.path.join(temp_dir, 'part_color_mapping.json')
with open(color_map_path, 'w') as f:
    json.dump(color_map, f)

# Create mock opt object with dataroot attribute
class MockOpt:
    def __init__(self, dataroot):
        self.dataroot = dataroot

opt = MockOpt(temp_dir)

# Create mock visualizer with display_current_results method
class MockVisualizer:
    def display_current_results(self, results_dict, epoch, total_epochs):
        pass

visualizer = MockVisualizer()

# Create tensors
# score: BxCxN tensor (batch=2, classes=50, points=4)
score = torch.randn(2, 50, 4)

# seg: BxN tensor (batch=2, points=4) - ground truth segmentation labels
seg = torch.randint(0, 50, (2, 4))

# label: batch labels indicating which object (0-15 for the 16 part categories)
label = torch.tensor([0, 5])

# input_pc: BxNx3 tensor (batch=2, points=4, coordinates=3)
input_pc = torch.randn(2, 4, 3)

ARGS = {
    'score': score,
    'seg': seg,
    'label': label,
    'visualizer': visualizer,
    'opt': opt,
    'input_pc': input_pc
}
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 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_np_array Ran
ran on a synthesized input
iSarmad/RL-GAN-Net/GAN/models/lossess.py
code served (permissive licence) · get_code("8dda5cb239b4da33")
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 (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
import numpy as np

torch.manual_seed(0)

# Analyze what the function actually uses:
# - score: torch tensor, used with torch.max(dim=1) and .size()[0]
# - seg: torch tensor, used with == operator and indexing [i]
# - label: indexable (list), used with label[i] to get indices into part_label
# - visualizer: not used in function body
# - opt: not used in function body
# - input_pc: not used in function body

# Build minimal valid arguments
batch_size = 2
num_points = 50
num_classes = 50

# score: (batch_size, num_classes, num_points) - logits for each class
score = torch.randn(batch_size, num_classes, num_points)

# seg: (batch_size, num_points) - ground truth segmentation labels (0-49)
seg = torch.randint(0, num_classes, (batch_size, num_points))

# label: (batch_size,) - object category labels (0-15, mapping to part_label indices)
label = torch.tensor([0, 5], dtype=torch.long).tolist()

# visualizer: not used, can be None
visualizer = None

# opt: not used, can be None or empty dict
opt = {}

# input_pc: not used, can be None
input_pc = None

ARGS = {
    "score": score,
    "seg": seg,
    "label": label,
    "visualizer": visualizer,
    "opt": opt,
    "input_pc": input_pc,
}
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 (2,) — shape (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
l2normalize Ran
ran; our contract draft was wrong, not the code
iSarmad/RL-GAN-Net/GAN/spectral.py
pointer only (licence: MIT); the stored copy get_code serves, from xxxliu95/RA_FA_Cardiac, is pointer only (licence: NONE) · get_code("bedff51745d2cf84")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from xxxliu95/RA_FA_Cardiac, 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.

make_dataset Ran
ran on a synthesized input
iSarmad/RL-GAN-Net/GAN/Datasets/shapenet.py
code served (permissive licence) · get_code("44710e59f68a82d7")
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 2, 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 with .npy files
temp_dir = tempfile.mkdtemp()

# Create subdirectories and dummy .npy files
subdir1 = os.path.join(temp_dir, 'class1')
subdir2 = os.path.join(temp_dir, 'class2')
os.makedirs(subdir1, exist_ok=True)
os.makedirs(subdir2, exist_ok=True)

# Create dummy .npy files
open(os.path.join(subdir1, 'file1.npy'), 'w').close()
open(os.path.join(subdir1, 'file2.npy'), 'w').close()
open(os.path.join(subdir2, 'file3.npy'), 'w').close()

# Mock the split2list function that is referenced but not defined
def split2list(plyfiles, split, default_split=None):
    """Mock implementation of split2list"""
    return plyfiles[:len(plyfiles)//2] if split else plyfiles

# Inject the mock into the function's namespace
import sys
current_module = sys.modules[__name__]
setattr(current_module, 'split2list', split2list)

ARGS = {
    'input_dir': temp_dir,
    'split': None
}
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 2, 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
robust_norm Ran
ran; our contract draft was wrong, not the code
iSarmad/RL-GAN-Net/GAN/models/lossess.py
code served (permissive licence) · get_code("4a27074f82ccb58b")
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, 5) 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)

# The function expects a tensor of shape BxCxHxW
# It computes (var ** 2).sum(dim=2) which sums over the H dimension
# Result will be BxCxW
var = torch.randn(2, 4, 3, 5)  # B=2, C=4, H=3, W=5

ARGS = {
    "var": var
}
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, 5) — shape (2, 4, 5) 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
str2bool Ran
ran, violated the contract we drafted
iSarmad/RL-GAN-Net/GAN/parameter.py
code served (permissive licence) · get_code("e5b1aff86a339d0e")
How it ran

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

ARGS = {
    'v': 'True'
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
decoder_sonet Not yet run
unverified (harvested, no recorded run)
iSarmad/RL-GAN-Net/GAN/models/Decoder_sonet.py
code served (permissive licence) · get_code("0746814faba0f1be")
How it ran

no invocation recorded.

encoder_pointnet Not yet run
unverified (harvested, no recorded run)
iSarmad/RL-GAN-Net/GAN/models/Encoder_pointnet.py
code served (permissive licence) · get_code("18634371ec55df94")
How it ran

no invocation recorded.

shapenet Not yet run
unverified (harvested, no recorded run)
iSarmad/RL-GAN-Net/GAN/Datasets/shapenet.py
code served (permissive licence) · get_code("0e17a901a7a23d4a")
How it ran

no invocation recorded.

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, 0 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
l2normalize 27 other papers
6 dated earlier, 21 later · 2 only as an assembly brick
1703.09452 (2017-03)
SEGAN: Speech Enhancement Generative Adversarial Network
1802.05957 (2018-02)
Spectral Normalization for Generative Adversarial Networks
1806.03589 (2018-06)
Free-Form Image Inpainting with Gated Convolution
and 24 more not named here
str2bool 11 other papers
5 dated earlier, 6 later
1611.01578 (2016-11)
Neural Architecture Search with Reinforcement Learning
1802.05637 (2018-02)
cGANs with Projection Discriminator
1805.11973 (2018-05)
MolGAN: An implicit generative model for small molecular graphs
and 8 more not named here
robust_norm 2 other papers
1 dated earlier, 1 later
1803.04249 (2018-03)
SO-Net: Self-Organizing Network for Point Cloud Analysis
2007.00074 (2020-07)
Deep Geometric Texture Synthesis
compute_iou 1 other paper
1 dated earlier
1803.04249 (2018-03)
SO-Net: Self-Organizing Network for Point Cloud Analysis
compute_iou_np_array 1 other paper
1 dated earlier
1803.04249 (2018-03)
SO-Net: Self-Organizing Network for Point Cloud Analysis

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 present RL-GAN-Net, where a reinforcement learning (RL) agent provides fast and robust control of a generative adversarial network (GAN). Our framework is applied to point cloud shape completion that converts noisy, partial point cloud data into a high-fidelity completed shape by controlling the GAN. While a GAN is unstable and hard to train, we circumvent the problem by (1) training the GAN on the latent space representation whose dimension is reduced compared to the raw point cloud input and (2) using an RL agent to find the correct input to the GAN to generate the latent space representation of the shape that best fits the current input of incomplete point cloud. The suggested pipeline robustly completes point cloud with large missing regions. To the best of our knowledge, this is the first attempt to train an RL agent to control the GAN, which effectively learns the highly nonlinear mapping from the input noise of the GAN to the latent space of point cloud. The RL agent replaces the need for complex optimization and consequently makes our technique real time. Additionally, we demonstrate that our pipelines can be used to enhance the classification accuracy of point cloud with missing data.

For agents

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

get_harvested_code_for_paper("1904.12304")
get_code_for_paper("1904.12304")
have("1904.12304")

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

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

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

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

Connect an agent — have() is free.