SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1711.10098 · 2017

Attentive Generative Adversarial Network for Raindrop Removal from a Single Image

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 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; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 1 failure 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/1711.10098.json · badge: /api/ran/1711.10098.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
rui1996/DeRaindrop canonical (classifier label)
classifier basis: classifier_2025
1 ran · 1 no recorded run
MaybeShewill-CV/attentive-gan-derainnet reimplementation (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
FunctionStatusWhere it lives
align_to_four Ran
ran, violated the contract we drafted
rui1996/DeRaindrop/predict.py
pointer only (licence: NONE) · get_code("de2574207975c4e8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, rui1996/DeRaindrop 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.

compute_net_gradients Ran
ran; our contract draft was wrong, not the code
MaybeShewill-CV/attentive-gan-derainnet/tools/train_model.py
code served (permissive licence) · get_code("c69d13a733510ad1")
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 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
import torch.nn as nn

torch.manual_seed(0)

class StandInNet(nn.Module):
    def __init__(self):
        super().__init__()
        self.conv = nn.Conv2d(3, 8, 3, padding=1)
        self.fc = nn.Linear(8 * 4 * 5, 10)
    
    def forward(self, x):
        x = self.conv(x)
        x = x.view(x.size(0), -1)
        x = self.fc(x)
        return x
    
    def compute_loss(self, input_tensor, labels, name=None, reuse=False):
        output = self.forward(input_tensor)
        loss = nn.functional.cross_entropy(output, labels)
        return loss

class StandInOptimizer:
    def __init__(self, params):
        self.params = list(params)
    
    def compute_gradients(self, loss):
        loss.backward()
        grads = []
        for param in self.params:
            if param.grad is not None:
                grads.append((param.grad.clone(), param))
            else:
                grads.append((None, param))
        return grads

images = torch.randn(2, 3, 4, 5)
labels = torch.randint(0, 10, (2,))
net = StandInNet()
optimizer = StandInOptimizer(net.parameters())
is_net_first_initialized = False

ARGS = {
    'images': images,
    'labels': labels,
    'net': net,
    'optimizer': optimizer,
    'is_net_first_initialized': is_net_first_initialized
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
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
minmax_scale Ran
ran, honoured the contract we drafted
MaybeShewill-CV/attentive-gan-derainnet/tools/test_model.py
code served (permissive licence) · get_code("1971608da6ee2771")
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 ndarray, ndim 2, dtype family float, shape (3, 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

# Create a small numpy array with distinct values for testing minmax_scale
input_arr = np.array([[1.0, 2.0, 3.0, 4.0],
                      [5.0, 6.0, 7.0, 8.0],
                      [9.0, 10.0, 11.0, 12.0]])

ARGS = {
    'input_arr': input_arr
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
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 (3, 4) — shape (3, 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
visualize_attention_map Ran
ran, honoured the contract we drafted
MaybeShewill-CV/attentive-gan-derainnet/tools/test_model.py
code served (permissive licence) · get_code("b056907aaf83258d")
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 ndarray, ndim 3, dtype family int, shape (5, 7, 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 attention map with values between 0 and 1
# Using shape (5, 7) to have distinct dimensions
attention_map = np.array([
    [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7],
    [0.8, 0.9, 1.0, 0.0, 0.2, 0.4, 0.6],
    [0.3, 0.5, 0.7, 0.9, 0.1, 0.3, 0.5],
    [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6],
    [0.5, 0.4, 0.3, 0.2, 0.1, 0.0, 1.0]
], dtype=np.float32)

ARGS = {
    'attention_map': attention_map
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
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 int, shape (5, 7, 3) — shape (5, 7, 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
predict Not yet run
unverified (harvested, no recorded run)
rui1996/DeRaindrop/predict.py
pointer only (licence: NONE) · get_code("05d7486897e98abd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, rui1996/DeRaindrop 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.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 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
minmax_scale 1 other paper
1 later
1802.05591 (2018-02)
Towards End-to-End Lane Detection: an Instance Segmentation Approach

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

Raindrops adhered to a glass window or camera lens can severely hamper the visibility of a background scene and degrade an image considerably. In this paper, we address the problem by visually removing raindrops, and thus transforming a raindrop degraded image into a clean one. The problem is intractable, since first the regions occluded by raindrops are not given. Second, the information about the background scene of the occluded regions is completely lost for most part. To resolve the problem, we apply an attentive generative network using adversarial training. Our main idea is to inject visual attention into both the generative and discriminative networks. During the training, our visual attention learns about raindrop regions and their surroundings. Hence, by injecting this information, the generative network will pay more attention to the raindrop regions and the surrounding structures, and the discriminative network will be able to assess the local consistency of the restored regions. This injection of visual attention to both generative and discriminative networks is the main contribution of this paper. Our experiments show the effectiveness of our approach, which outperforms the state of the art methods quantitatively and qualitatively.

For agents

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

get_harvested_code_for_paper("1711.10098")
get_code_for_paper("1711.10098")
have("1711.10098")

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

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

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

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

Connect an agent — have() is free.