SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1903.08817 · 2019

Dual Residual Networks Leveraging the Potential of Paired Operations for Image Restoration

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 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 4 have no contract verdict; 2 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/1903.08817.json · badge: /api/ran/1903.08817.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
liu-vis/DualResidualNetworks canonical (classifier label)
classifier basis: census
6 ran · 1 no recorded run
FunctionStatusWhere it lives
AddNoiseToTensor Ran
ran on a synthesized input
liu-vis/DualResidualNetworks/train/gaussian_noise.py
code served (permissive licence) · get_code("9916a4e524dcea05")
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 4, dtype family float, shape (2, 4, 3, 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
import random

torch.manual_seed(0)

# Create a small tensor with shape (batch=2, channels=4, height=3, width=5)
# Using distinct dimensions to avoid ambiguity
patchs = torch.randn(2, 4, 3, 5)

# Vars is already defined in the function, but we need to pass it as an argument
Vars = [30, 50, 70]

ARGS = {
    "patchs": patchs,
    "Vars": Vars
}
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 4, dtype family float, shape (2, 4, 3, 5) — shape (2, 4, 3, 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
CropSample Ran
ran; our contract draft was wrong, not the code
liu-vis/DualResidualNetworks/pietorch/N_modules.py
pointer only (licence: MIT); the stored copy get_code serves, from liuzhu-cv/crmef, is pointer only (licence: NONE) · get_code("0415a04e36607241")
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 liuzhu-cv/crmef, 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.

DataAugmentation Ran
ran on a synthesized input
liu-vis/DualResidualNetworks/pietorch/N_modules.py
code served (permissive licence) · get_code("a8d0c9f00c240639")
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 random
from PIL import Image
import numpy as np

# Create small PIL Images for im_input and label
# im_input: a small image (4x3 pixels, RGB)
im_input = Image.new('RGB', (4, 3), color=(255, 0, 0))

# label: a small image (4x3 pixels, grayscale)
label = Image.new('L', (4, 3), color=128)

ARGS = {
    'im_input': im_input,
    'label': label
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, 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
RESIDE_loader Ran
ran on a synthesized input
liu-vis/DualResidualNetworks/pietorch/data_convertors.py
code served (permissive licence) · get_code("6f70596d93a25554")
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
import random
from PIL import Image
import tempfile
import os

# Create temporary directory structure with mock image files
tmpdir = tempfile.mkdtemp()
dataroot = tmpdir + '/'
os.makedirs(dataroot + 'images', exist_ok=True)
os.makedirs(dataroot + 'labels', exist_ok=True)

# Create mock image files
im_name = 'test.png'

# Create label image
label_img = Image.new('RGB', (32, 32), color='red')
label_img.save(dataroot + 'labels/' + im_name)

# Create 10 hazy images (variants 1-10)
for var in range(1, 11):
    hazy_img = Image.new('RGB', (32, 32), color='blue')
    hazy_path = dataroot + 'images/' + im_name.split('.')[0] + '_' + str(var) + '.png'
    hazy_img.save(hazy_path)

ARGS = {
    'dataroot': dataroot,
    'im_name': im_name,
    'is_train': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, 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
RainDrop_loader Ran
ran on a synthesized input
liu-vis/DualResidualNetworks/pietorch/data_convertors.py
code served (permissive licence) · get_code("8b854625c3a80e22")
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 4, dtype family int; 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 cv2
import numpy as np
import tempfile
import os

# Create a temporary directory structure to simulate the RainDrop dataset
tmpdir = tempfile.mkdtemp()
test_a_dir = os.path.join(tmpdir, 'test_a', 'data')
test_a_gt_dir = os.path.join(tmpdir, 'test_a', 'gt')
os.makedirs(test_a_dir, exist_ok=True)
os.makedirs(test_a_gt_dir, exist_ok=True)

# Create dummy images
dummy_img = np.random.randint(0, 256, (8, 8, 3), dtype=np.uint8)
cv2.imwrite(os.path.join(test_a_gt_dir, 'test_image_clean.png'), dummy_img)
cv2.imwrite(os.path.join(test_a_dir, 'test_image_rain.png'), dummy_img)

# Also create test_b structure with jpg files
test_b_dir = os.path.join(tmpdir, 'test_b', 'data')
test_b_gt_dir = os.path.join(tmpdir, 'test_b', 'gt')
os.makedirs(test_b_dir, exist_ok=True)
os.makedirs(test_b_gt_dir, exist_ok=True)
cv2.imwrite(os.path.join(test_b_gt_dir, 'test_image_clean.jpg'), dummy_img)
cv2.imwrite(os.path.join(test_b_dir, 'test_image_rain.jpg'), dummy_img)

# Create training data structure
train_dir = os.path.join(tmpdir, 'train', 'data')
train_gt_dir = os.path.join(tmpdir, 'train', 'gt')
os.makedirs(train_dir, exist_ok=True)
os.makedirs(train_gt_dir, exist_ok=True)
cv2.imwrite(os.path.join(train_gt_dir, 'train_image_clean.png'), dummy_img)
cv2.imwrite(os.path.join(train_dir, 'train_image_rain.png'), dummy_img)

# Test with is_train=False (test_a)
dataroot_test_a = os.path.join(tmpdir, 'test_a') + '/'
im_name_test = 'test_image'

ARGS = {
    'dataroot': dataroot_test_a,
    'im_name': im_name_test,
    'is_train': False,
    'color_fmt': 'BGR'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, h5py, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 4, dtype family int — 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
conv3x3 Ran
ran; our contract draft was wrong, not the code
liu-vis/DualResidualNetworks/pietorch/se_nets.py
pointer only (licence: MIT); the stored copy get_code serves, from amerch/CIFAR100-Training, is pointer only (licence: NONE) · get_code("583f9780bdd00a45")
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 amerch/CIFAR100-Training, 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.

DCPDNData_loader Not yet run
unverified (harvested, no recorded run)
liu-vis/DualResidualNetworks/pietorch/data_convertors.py
code served (permissive licence) · get_code("17d9d8e77a9b0668")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 2 later) and 5 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
conv3x3 686 other papers
93 dated earlier, 8 the same month, 585 later · 31 only as an assembly brick
1406.2661 (2014-06)
Generative Adversarial Networks
1409.0575 (2014-09)
ImageNet Large Scale Visual Recognition Challenge
1412.6572 (2014-12)
Explaining and Harnessing Adversarial Examples
and 683 more not named here
CropSample 1 other paper
1 later
2308.03979 (2023-08)
PAIF: Perception-Aware Infrared-Visible Image Fusion for Attack-Tolerant 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

In this paper, we study design of deep neural networks for tasks of image restoration. We propose a novel style of residual connections dubbed "dual residual connection", which exploits the potential of paired operations, e.g., up- and down-sampling or convolution with large- and small-size kernels. We design a modular block implementing this connection style; it is equipped with two containers to which arbitrary paired operations are inserted. Adopting the "unraveled" view of the residual networks proposed by Veit et al., we point out that a stack of the proposed modular blocks allows the first operation in a block interact with the second operation in any subsequent blocks. Specifying the two operations in each of the stacked blocks, we build a complete network for each individual task of image restoration. We experimentally evaluate the proposed approach on five image restoration tasks using nine datasets. The results show that the proposed networks with properly chosen paired operations outperform previous methods on almost all of the tasks and datasets.

For agents

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

get_harvested_code_for_paper("1903.08817")
get_code_for_paper("1903.08817")
have("1903.08817")

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

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

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

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

Connect an agent — have() is free.