SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1802.08797 · 2018

Residual Dense Network for Image Super-Resolution

arXiv · PDF · Open in the Atlas

Code that ran

20 of 24 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 12 have no contract verdict; 5 failures of our instrument; 4 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/1802.08797.json · badge: /api/ran/1802.08797.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
DivJAth/DeepLearning5922 community (classifier label)
classifier basis not recorded on the link
8 ran · 3 no recorded run
puffnjackie/pytorch-super-resolution-implementations community (classifier label)
classifier basis not recorded on the link
6 ran · 0 no recorded run
coloquinte/torchsr reimplementation (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
yjn870/rdn-pytorch community (classifier label)
classifier basis not recorded on the link
2 ran · 1 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
calculate_valid_crop_size Ran
ran on a synthesized input
puffnjackie/pytorch-super-resolution-implementations/utils.py
code served (permissive licence) · get_code("c889b417f65ffc2a")
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 int, ndim 0, dtype family int, 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)

crop_size = 128
upscale_factor = 4

ARGS = {
    "crop_size": crop_size,
    "upscale_factor": upscale_factor
}
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 int, ndim 0, dtype family int, 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
convert_rgb_to_y Ran
ran on a synthesized input
yjn870/rdn-pytorch/utils.py
code served (permissive licence) · get_code("7dfb710bae9177e3")
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 (2, 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
import numpy as np

torch.manual_seed(0)

# Create a small RGB image tensor
# Using hwc format: height=2, width=4, channels=3
img_hwc = torch.rand(2, 4, 3) * 255.0

# Create a small RGB image tensor in chw format for testing the else branch
# Using chw format: channels=3, height=2, width=4
img_chw = torch.rand(3, 2, 4) * 255.0

# Test with hwc (default)
ARGS = {
    'img': img_hwc,
    'dim_order': 'hwc'
}
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 Tensor, ndim 2, dtype family float, 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
cset Ran
ran; our contract draft was wrong, not the code
DivJAth/DeepLearning5922/WorkerServer/progressive_gans/networks.py
pointer only (licence: MIT); the stored copy get_code serves, from LignumResearch/stylewood-model-usage, is pointer only (licence: NOASSERTION) · get_code("f7d82b02ff7c7fe1")
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 LignumResearch/stylewood-model-usage, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

denormalize Ran
ran on a synthesized input
yjn870/rdn-pytorch/utils.py
code served (permissive licence) · get_code("1147a2dbb2f252eb")
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, 3, 4, 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 normalized image tensor (values in [0, 1] range)
# Shape: (batch=2, channels=3, height=4, width=4)
img = torch.rand(2, 3, 4, 4)

ARGS = {
    "img": img
}
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, 3, 4, 4) — shape (2, 3, 4, 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
getImageArr Ran
ran on a synthesized input
DivJAth/DeepLearning5922/WorkerServer/FCN8/temp.py
code served (permissive licence) · get_code("93fe2690eaf6ae65")
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 3, dtype family float, shape (64, 64, 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 cv2
import os
import numpy as np
import matplotlib.pyplot as plt
from unittest.mock import patch, MagicMock
import tempfile

# Create a temporary directory and a dummy image file
temp_dir = tempfile.mkdtemp()
dummy_image_path = os.path.join(temp_dir, "test_image.jpg")

# Create a small dummy image (100x100 BGR image)
dummy_img = np.uint8(np.random.randint(0, 256, (100, 100, 3)))
cv2.imwrite(dummy_image_path, dummy_img)

# Mock plt.show() to prevent blocking
plt.show = MagicMock()

ARGS = {
    "path": dummy_image_path,
    "width": 64,
    "height": 64
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, matplotlib, 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 float, shape (64, 64, 3) — shape (64, 64, 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
getSegmentationArr Ran
ran on a synthesized input
DivJAth/DeepLearning5922/WorkerServer/FCN8/vgg16part2.py
code served (permissive licence) · get_code("390a59999fa7e133")
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 3, dtype family float, shape (6, 8, 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 cv2
import numpy as np
import tempfile
import os

# Create a temporary directory for test images
temp_dir = tempfile.mkdtemp()

# Create a simple test segmentation image
# The image should have pixel values from 0 to nClasses-1
nClasses = 3
width = 8
height = 6

# Create a simple test image with values 0, 1, 2
test_img = np.zeros((height, width, 3), dtype=np.uint8)
test_img[:2, :4, 0] = 0  # Class 0
test_img[2:4, :4, 0] = 1  # Class 1
test_img[4:, :4, 0] = 2   # Class 2
test_img[:2, 4:, 0] = 0   # Class 0
test_img[2:4, 4:, 0] = 1  # Class 1
test_img[4:, 4:, 0] = 2   # Class 2

# Write the test image to a temporary file
test_image_path = os.path.join(temp_dir, "test_seg.png")
cv2.imwrite(test_image_path, test_img)

ARGS = {
    "path": test_image_path,
    "nClasses": 3,
    "width": 8,
    "height": 6
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, 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 float, shape (6, 8, 3) — shape (6, 8, 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
get_network Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from idealo/image-super-resolution
pointer only · get_code("9bd62e7608b51355")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

input_transform Ran
ran on a synthesized input
puffnjackie/pytorch-super-resolution-implementations/utils.py
code served (permissive licence) · get_code("b149efda3d8e6d7d")
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 Compose. 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
from torchvision.transforms import Compose, CenterCrop, ToTensor, Resize

torch.manual_seed(0)

ARGS = {
    "crop_size": 128,
    "upscale_factor": 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Compose — a Compose output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Compose 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
is_image_file Ran
ran, violated the contract we drafted
puffnjackie/pytorch-super-resolution-implementations/dataset.py
code served (permissive licence) · get_code("0516d5020cce56da")
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 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.

import torch
import numpy as np

def is_image_file(filename):
    return any((filename.endswith(extension) for extension in ['.png', '.jpg', '.jpeg']))

ARGS = {
    'filename': 'test_image.jpg'
}
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 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
lerp Ran
ran, honoured the contract we drafted
DivJAth/DeepLearning5922/WorkerServer/progressive_gans/networks.py
pointer only (licence: MIT); the stored copy get_code serves, from thenhz/progressive_growing_of_gan, is pointer only (licence: NOASSERTION) · get_code("0c45399f3741921e")
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 thenhz/progressive_growing_of_gan, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

lerp_clip Ran
ran, honoured the contract we drafted
DivJAth/DeepLearning5922/WorkerServer/progressive_gans/networks.py
pointer only (licence: MIT); the stored copy get_code serves, from LignumResearch/stylewood-model-usage, is pointer only (licence: NOASSERTION) · get_code("6e81789f8f2068c8")
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 LignumResearch/stylewood-model-usage, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

load_RGB_img Ran
ran on a synthesized input
puffnjackie/pytorch-super-resolution-implementations/dataset.py
code served (permissive licence) · get_code("fc54dc3ed3050dee")
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 Image. 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 tempfile
from PIL import Image
import os

# Create a temporary RGB image file
temp_dir = tempfile.mkdtemp()
temp_image_path = os.path.join(temp_dir, "test_image.png")

# Create a small RGB image and save it
test_image = Image.new('RGB', (4, 3), color=(255, 0, 0))
test_image.save(temp_image_path)

ARGS = {
    'filepath': temp_image_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int 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
load_img Ran
ran on a synthesized input
puffnjackie/pytorch-super-resolution-implementations/dataset.py
code served (permissive licence) · get_code("283c3f29d71d3276")
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 Image. 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 tempfile
import os
from PIL import Image
import numpy as np

# Create a temporary directory and a simple test image
temp_dir = tempfile.mkdtemp()
img_path = os.path.join(temp_dir, "test_image.png")

# Create a small test image in RGB mode and save it
test_array = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)
test_img = Image.fromarray(test_array, mode='RGB')
test_img.save(img_path)

ARGS = {
    "filepath": img_path
}
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 Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 2 and dtype family int 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
load_imgs_from_path Ran
ran on a synthesized input
DivJAth/DeepLearning5922/WebServer/utils.py
code served (permissive licence) · get_code("7e3fea997fd296f8")
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. 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 tempfile
import os
from PIL import Image
import numpy as np

# Create temporary directory and test images
tmpdir = tempfile.mkdtemp()

# Create a small test image and save it
img_array_1 = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)
img_1 = Image.fromarray(img_array_1)
imgpath_1 = os.path.join(tmpdir, "test_img_1.png")
img_1.save(imgpath_1)

# Create another test image
img_array_2 = np.random.randint(0, 256, (5, 4, 3), dtype=np.uint8)
img_2 = Image.fromarray(img_array_2)
imgpath_2 = os.path.join(tmpdir, "test_img_2.png")
img_2.save(imgpath_2)

# Define ARGS with list of image paths
ARGS = {
    "imgpaths": [imgpath_1, imgpath_2]
}
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 list — a list 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
normalize_images Ran
ran on a synthesized input
DivJAth/DeepLearning5922/dummy_client.py
code served (permissive licence) · get_code("7b611f1478dce021")
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 3, dtype family float, shape (2, 28, 28) 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

# The function expects images as a numpy array
# It reshapes to (-1, H*W) where H=28, W=28, so H*W=784
# Then performs mean/std normalization per image
# Finally reshapes back to (-1, H, W)

# Create a small batch of images: 2 images of 28x28
images = np.random.randn(2, 28, 28).astype(np.float32)

ARGS = {
    "images": images
}
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 3, dtype family float, shape (2, 28, 28) — shape (2, 28, 28) 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
rdn Ran
ran; our contract draft was wrong, not the code
coloquinte/torchsr/torchsr/models/rdn.py
code served (permissive licence) · get_code("cfb719de8e4309a5")
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) and returned RDN. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'scale': 2,
    'pretrained': False,
}
Setup block drafted by
a language model, Claude Haiku 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 RDN — a RDN output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a RDN 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
rdn_a Ran
ran; our contract draft was wrong, not the code
coloquinte/torchsr/torchsr/models/rdn.py
code served (permissive licence) · get_code("8b6862fabd89b5b7")
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) and returned RDN. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'scale': 2,
    'pretrained': False,
}
Setup block drafted by
a language model, Claude Haiku 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 RDN — a RDN output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a RDN 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
rdn_b Ran
ran; our contract draft was wrong, not the code
coloquinte/torchsr/torchsr/models/rdn.py
code served (permissive licence) · get_code("325673b8c71b9a93")
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) and returned RDN. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'scale': 2,
    'pretrained': False,
}
Setup block drafted by
a language model, Claude Haiku 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 RDN — a RDN output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a RDN 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
save_imgs_to_path Ran
ran on a synthesized input
DivJAth/DeepLearning5922/WebServer/utils.py
code served (permissive licence) · get_code("b83ca28b09fb0076")
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
from unittest.mock import Mock

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

# Create mock file objects with filename attribute and save method
mock_file1 = Mock()
mock_file1.filename = "image1.jpg"
mock_file1.save = Mock()

mock_file2 = Mock()
mock_file2.filename = "image2.png"
mock_file2.save = Mock()

files = [mock_file1, mock_file2]
folderpath = temp_dir

ARGS = {
    "files": files,
    "folderpath": folderpath
}
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
target_transform Ran
ran on a synthesized input
puffnjackie/pytorch-super-resolution-implementations/utils.py
code served (permissive licence) · get_code("02cc7a7cfd24376d")
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 Compose. 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
from torchvision.transforms import Compose, CenterCrop, ToTensor, Resize
from PIL import Image
import numpy as np

torch.manual_seed(0)

# crop_size is used by CenterCrop, which expects an int or sequence of ints
# representing the desired output size
crop_size = 32

ARGS = {
    "crop_size": crop_size
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Compose — a Compose output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Compose 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
G_wgan_acgan Not yet run
unverified (harvested, no recorded run)
DivJAth/DeepLearning5922/WorkerServer/progressive_gans/loss.py
code served (permissive licence) · get_code("82992ce1f4764e7b")
How it ran

no invocation recorded.

getImageArr Not yet run
unverified (harvested, no recorded run)
DivJAth/DeepLearning5922/WorkerServer/FCN8/fcn8Inference.py
code served (permissive licence) · get_code("62ec85e3d3a6e20b")
How it ran

no invocation recorded.

getImageArr Not yet run
unverified (harvested, no recorded run)
DivJAth/DeepLearning5922/WorkerServer/FCN8/vgg16part2.py
code served (permissive licence) · get_code("08e9f90b6fa9aaed")
How it ran

no invocation recorded.

preprocess Not yet run
unverified (harvested, no recorded run)
yjn870/rdn-pytorch/utils.py
code served (permissive licence) · get_code("df34751a7f8082d3")
How it ran

no invocation recorded.

Also present in other papers' code

Of 24 samples lifted from this paper's linked repositories, 24 carry a function identity and 0 do not. Of the 23 distinct functions with an identity, 8 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 6 later) and 15 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
is_image_file 8 other papers
8 later
1803.02735 (2018-03)
Deep Back-Projection Networks For Super-Resolution
1903.10128 (2019-03)
Recurrent Back-Projection Network for Video Super-Resolution
1905.06368 (2019-05)
Collaborative Global-Local Networks for Memory-Efficient Segmentation of Ultra-High Resolution Images
and 5 more not named here
lerp 7 other papers
1 dated earlier, 6 later
1710.10196 (2017-10)
Progressive Growing of GANs for Improved Quality, Stability, and Variation
1812.04948 (2018-12)
A Style-Based Generator Architecture for Generative Adversarial Networks
1909.03935 (2019-09)
GAN-Leaks: A Taxonomy of Membership Inference Attacks against Generative Models
and 4 more not named here
calculate_valid_crop_size 3 other papers
2 dated earlier, 1 later
1609.04802 (2016-09)
Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network
1609.05158 (2016-09)
Real-Time Single Image and Video Super-Resolution Using an Efficient Sub-Pixel Convolutional Neural Network
1911.07850 (2019-11)
Frequency Separation for Real-World Super-Resolution
cset 3 other papers
1 dated earlier, 2 later
1710.10196 (2017-10)
Progressive Growing of GANs for Improved Quality, Stability, and Variation
1812.04948 (2018-12)
A Style-Based Generator Architecture for Generative Adversarial Networks
1909.03935 (2019-09)
GAN-Leaks: A Taxonomy of Membership Inference Attacks against Generative Models
lerp_clip 3 other papers
1 dated earlier, 2 later
1710.10196 (2017-10)
Progressive Growing of GANs for Improved Quality, Stability, and Variation
1812.04948 (2018-12)
A Style-Based Generator Architecture for Generative Adversarial Networks
1909.03935 (2019-09)
GAN-Leaks: A Taxonomy of Membership Inference Attacks against Generative Models
G_wgan_acgan 2 other papers
1 dated earlier, 1 later
1710.10196 (2017-10)
Progressive Growing of GANs for Improved Quality, Stability, and Variation
1909.03935 (2019-09)
GAN-Leaks: A Taxonomy of Membership Inference Attacks against Generative Models
convert_rgb_to_y 1 other paper
1 dated earlier
1608.00367 (2016-08)
Accelerating the Super-Resolution Convolutional Neural Network
get_network 1 other paper
1 dated earlier
1609.04802 (2016-09)
Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network

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

A very deep convolutional neural network (CNN) has recently achieved great success for image super-resolution (SR) and offered hierarchical features as well. However, most deep CNN based SR models do not make full use of the hierarchical features from the original low-resolution (LR) images, thereby achieving relatively-low performance. In this paper, we propose a novel residual dense network (RDN) to address this problem in image SR. We fully exploit the hierarchical features from all the convolutional layers. Specifically, we propose residual dense block (RDB) to extract abundant local features via dense connected convolutional layers. RDB further allows direct connections from the state of preceding RDB to all the layers of current RDB, leading to a contiguous memory (CM) mechanism. Local feature fusion in RDB is then used to adaptively learn more effective features from preceding and current local features and stabilizes the training of wider network. After fully obtaining dense local features, we use global feature fusion to jointly and adaptively learn global hierarchical features in a holistic way. Extensive experiments on benchmark datasets with different degradation models show that our RDN achieves favorable performance against state-of-the-art methods.

For agents

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

get_harvested_code_for_paper("1802.08797")
get_code_for_paper("1802.08797")
have("1802.08797")

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

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

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

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

Connect an agent — have() is free.