SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2008.13751 · 2020

Plug-and-Play Image Restoration with Deep Denoiser Prior

arXiv · PDF · Open in the Atlas

Code that ran

18 of 28 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 14 have no contract verdict; 4 failures of our instrument; 10 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/2008.13751.json · badge: /api/ran/2008.13751.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
cszn/DPIR canonical (classifier label)
classifier basis: census
5 ran · 0 no recorded run
HedgehogCode/denoising-gan community (classifier label)
classifier basis not recorded on the link
10 ran · 9 no recorded run
HedgehogCode/deep-plug-and-play-prior community (classifier label)
classifier basis not recorded on the link
3 ran · 1 no recorded run
FunctionStatusWhere it lives
apply_debug Ran
ran on a synthesized input
HedgehogCode/denoising-gan/utils.py
code served (permissive licence) · get_code("04bc984d219b19d0")
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 dict. 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)

# Construct valid arguments for apply_debug
config = {
    'steps_gen': 500,
    'steps_gan': 1200,
    'model_name': 'test_model'
}

debug = True
dae = False

ARGS = {
    'config': config,
    'debug': debug,
    'dae': dae
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
blur Ran
ran on a synthesized input
HedgehogCode/deep-plug-and-play-prior/dppp/utils.py
code served (permissive licence) · get_code("a61cd181f14e6225")
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 EagerTensor, ndim 4, dtype family float, shape (2, 4, 3, 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 tensorflow as tf
import numpy as np

# Set seed for reproducibility
tf.random.set_seed(0)
np.random.seed(0)

# Define the ConvolutionModes class (from the function definition)
class ConvolutionModes(object):
    """Modes for border handling when computing a convolution"""
    CONSTANT = 'constant'
    WRAP = 'wrap'

# Create small test tensors
batch_size = 2
height = 4
width = 3
channels_in = 2
channels_out = 2
kernel_height = 3
kernel_width = 3

# Create image tensor: [BATCH, HEIGHT, WIDTH, CHANNELS]
image = tf.constant(
    np.random.rand(batch_size, height, width, channels_in).astype(np.float32)
)

# Create kernel tensor: [KERNEL_HEIGHT, KERNEL_WIDTH, IN_CHANNELS, OUT_CHANNELS]
kernel = tf.constant(
    np.random.rand(kernel_height, kernel_width, channels_in, channels_out).astype(np.float32)
)

# Noise standard deviation
noise_stddev = 0.1

# Construct ARGS dictionary with all parameters for blur function
ARGS = {
    'image': image,
    'kernel': kernel,
    'noise_stddev': noise_stddev,
    'mode': ConvolutionModes.CONSTANT,
    'clip_final': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 4, dtype family float, shape (2, 4, 3, 2) — shape (2, 4, 3, 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
conv Ran
ran; our contract draft was wrong, not the code
cszn/DPIR/models/basicblock.py
code served (permissive licence) · get_code("0bb3503f833a6f8e")
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 Sequential. 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
from collections import OrderedDict

torch.manual_seed(0)

ARGS = {
    'in_channels': 3,
    'out_channels': 64,
    'kernel_size': 3,
    'stride': 1,
    'padding': 1,
    'bias': True,
    'mode': 'CBR',
    'negative_slope': 0.2
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
conv2D_filter_rgb Ran
ran on a synthesized input
HedgehogCode/deep-plug-and-play-prior/dppp/utils.py
code served (permissive licence) · get_code("c46741143221e8c5")
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 EagerTensor, ndim 4, 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 tensorflow as tf

# Create a small 2D kernel with shape [H, W]
# Using distinct dimensions: 4 for H, 3 for W to make shapes unambiguous
kernel = tf.constant([
    [1.0, 2.0, 3.0],
    [4.0, 5.0, 6.0],
    [7.0, 8.0, 9.0],
    [10.0, 11.0, 12.0]
], dtype=tf.float32)

ARGS = {
    "kernel": kernel
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 4, dtype family float — no output shape is stated: observe_signature.py recorded SymbolicTensor ndim 4, 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
dataset_filter Ran
ran on a synthesized input
HedgehogCode/denoising-gan/evaluate.py
code served (permissive licence) · get_code("39275635df4360a4")
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

torch.manual_seed(0)

ARGS = {
    'k': 'bsds500'
}
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 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
degrade_filter Ran
ran on a synthesized input
HedgehogCode/denoising-gan/evaluate.py
code served (permissive licence) · get_code("e625483ff10107d2")
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

torch.manual_seed(0)

def degrade_filter(k):
    return k.startswith('gauss')

ARGS = {
    'k': 'gaussian_blur'
}
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 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
disc_loss_clean Ran
ran on a synthesized input
HedgehogCode/denoising-gan/dngan/losses.py
code served (permissive licence) · get_code("da6637e84b3f0f4c")
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 EagerTensor, 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 tensorflow as tf
from tensorflow import keras
import numpy as np

# Create small tensor arguments for the function
batch_size = 2
output_dim = 4

# output_clean: tensor of logits from discriminator on clean data
output_clean = tf.constant(np.random.randn(batch_size, output_dim).astype(np.float32))

# output_gen: tensor of logits from discriminator on generated data
# (not used in the function body, but required as parameter)
output_gen = tf.constant(np.random.randn(batch_size, output_dim).astype(np.float32))

ARGS = {
    "output_clean": output_clean,
    "output_gen": output_gen,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, 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
dncnn_generator Ran
ran on a synthesized input
HedgehogCode/denoising-gan/dngan/generator.py
code served (permissive licence) · get_code("2267eb0d36c5ccaf")
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 function. 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 tensorflow as tf
import numpy as np

ARGS = {
    'out_channels': 3,
    'num_conv': 19,
    'internal_residuals': False,
    'global_residual': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
evaluate_test Ran
ran on a synthesized input
HedgehogCode/denoising-gan/dngan/training.py
code served (permissive licence) · get_code("960754a03da290de")
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 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 tensorflow as tf

# Define a simple model that takes an input tensor and returns output tensor
class SimpleModel:
    def __call__(self, inp):
        # Model takes input and returns same shape output
        return inp * 2.0

# Create tiny datasets
def create_dataset(num_samples=2):
    """Create a small tf.data.Dataset with (input, output) pairs."""
    inputs = tf.constant([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]], dtype=tf.float32)
    outputs = tf.constant([[2.0, 4.0, 6.0, 8.0], [10.0, 12.0, 14.0, 16.0]], dtype=tf.float32)
    dataset = tf.data.Dataset.from_tensor_slices((inputs, outputs))
    return dataset

# Define simple metrics
def mse_metric(gt, pred):
    """Mean squared error metric."""
    return tf.reduce_mean(tf.square(gt - pred))

def mae_metric(gt, pred):
    """Mean absolute error metric."""
    return tf.reduce_mean(tf.abs(gt - pred))

# Create model
model = SimpleModel()

# Create datasets dictionary with two datasets
datasets = {
    'train': create_dataset(2),
    'val': create_dataset(2),
}

# Create metrics dictionary
metrics = {
    'mse': mse_metric,
    'mae': mae_metric,
}

# Define ARGS for evaluate_test function
ARGS = {
    'model': model,
    'datasets': datasets,
    'metrics': metrics,
    'summary_prefix': 'test',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — 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
get_from_environ Ran
ran on a synthesized input
HedgehogCode/denoising-gan/utils.py
code served (permissive licence) · get_code("5c074e16e43103be")
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 str. 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 os

# The function get_from_environ takes two parameters:
# 1. var_name: a string representing an environment variable name
# 2. default_val: a default value to return if the variable is not set

# Set up test environment - clear a test variable to use default
if 'TEST_VAR' in os.environ:
    del os.environ['TEST_VAR']

# Set up another variable to test the retrieval path
os.environ['EXISTING_VAR'] = 'existing_value'

ARGS = {
    'var_name': 'TEST_VAR',
    'default_val': 'default_value'
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
pixel_unshuffle Ran
ran; our contract draft was wrong, not the code
cszn/DPIR/models/basicblock.py
pointer only (licence: MIT); the stored copy get_code serves, from claroche-r/fastdiffusionem, is pointer only (licence: NONE) · get_code("e84da58ba9736585")
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 claroche-r/fastdiffusionem, 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.

psnr Ran
ran on a synthesized input
HedgehogCode/deep-plug-and-play-prior/dppp/metrics.py
code served (permissive licence) · get_code("1fe398ceae86d475")
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 EagerTensor, 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 tensorflow as tf
import numpy as np

# Create small image tensors for testing
# Using shape (batch, height, width, channels) for batched images
# PSNR requires images to be the same shape

# Batched case: (batch_size, height, width, channels)
batch_size = 2
height = 4
width = 3
channels = 3

# Create random image tensors with values in [0, 1]
imgs_a_batched = tf.constant(
    np.random.rand(batch_size, height, width, channels).astype(np.float32)
)
imgs_b_batched = tf.constant(
    np.random.rand(batch_size, height, width, channels).astype(np.float32)
)

# Unbatched case: (height, width, channels)
imgs_a_unbatched = tf.constant(
    np.random.rand(height, width, channels).astype(np.float32)
)
imgs_b_unbatched = tf.constant(
    np.random.rand(height, width, channels).astype(np.float32)
)

# Test with batched inputs
ARGS = {
    "imgs_a": imgs_a_batched,
    "imgs_b": imgs_b_batched,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, 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
psnr Ran
ran on a synthesized input
HedgehogCode/denoising-gan/dngan/metrics.py
code served (permissive licence) · get_code("63c3e31a8d2ca736")
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 EagerTensor, 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 tensorflow as tf
import numpy as np

# Create two small image tensors with values in [0, 1] range
# Shape: (batch_size=2, height=4, width=3, channels=1)
imgs_a = tf.constant(np.random.rand(2, 4, 3, 1).astype(np.float32))
imgs_b = tf.constant(np.random.rand(2, 4, 3, 1).astype(np.float32))

ARGS = {
    "imgs_a": imgs_a,
    "imgs_b": imgs_b,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, 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
read_config Ran
ran on a synthesized input
HedgehogCode/denoising-gan/utils.py
code served (permissive licence) · get_code("01a49af5dca2bf0e")
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 dict. 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 json
import tempfile
import os

# Create a temporary JSON config file
temp_dir = tempfile.mkdtemp()
config_path = os.path.join(temp_dir, "config.json")

# Create a sample config dictionary
sample_config = {
    "model": "bert",
    "learning_rate": 0.001,
    "batch_size": 32,
    "epochs": 10,
    "layers": [64, 128, 256],
    "dropout": 0.1
}

# Write the config to a JSON file
with open(config_path, 'w') as f:
    json.dump(sample_config, f)

# Define ARGS with the path to the config file
ARGS = {
    "path_to_config": config_path
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
residual_block Ran
ran on a synthesized input
HedgehogCode/denoising-gan/dngan/blocks.py
code served (permissive licence) · get_code("40fa25b27aa11ea8")
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 function. 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)

# Create simple linear layers that can be chained together
# The residual_block function expects:
# 1. layers: an iterable of callables that transform x
# 2. Each layer should be callable and accept/return tensors of same shape

class SimpleLinear(nn.Module):
    def __init__(self, in_features, out_features):
        super().__init__()
        self.linear = nn.Linear(in_features, out_features)
    
    def forward(self, x):
        return self.linear(x)

# Create a small residual block with layers that preserve dimension
# Input shape: (batch=2, features=4)
layer1 = nn.Linear(4, 4)
layer2 = nn.Linear(4, 4)

layers = [layer1, layer2]

ARGS = {
    "layers": layers
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
test Ran
ran; our contract draft was wrong, not the code
cszn/DPIR/utils/utils_model.py
pointer only (licence: MIT); the stored copy get_code serves, from guanys-dar/mgdn, is pointer only (licence: NONE) · get_code("8afaf26fe2391d00")
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 guanys-dar/mgdn, 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.

test_pad Ran
ran on a synthesized input
cszn/DPIR/utils/utils_model.py
code served (permissive licence) · get_code("54f9c2acc0385e32")
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, 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 numpy as np
import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a simple model that takes an input tensor and returns output of same spatial dims
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.conv = nn.Conv2d(3, 3, kernel_size=3, padding=1)
    
    def forward(self, x):
        # Return tensor with same spatial dimensions as input
        return self.conv(x)

# Create model instance
model = SimpleModel()

# Create input tensor: batch_size=2, channels=3, height=4, width=5
# Using distinct dimensions so shapes can be probed
L = torch.randn(2, 3, 4, 5)

ARGS = {
    "model": model,
    "L": L,
    "modulo": 16
}
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 4, dtype family float, shape (2, 3, 4, 5) — shape (2, 3, 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
upsample_pixelshuffle Ran
ran; our contract draft was wrong, not the code
cszn/DPIR/models/basicblock.py
pointer only (licence: MIT); the stored copy get_code serves, from qcf-568/ostf, is pointer only (licence: NONE) · get_code("1e826b826044c581")
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 qcf-568/ostf, 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.

conv2d_block Not yet run
unverified (harvested, no recorded run)
HedgehogCode/denoising-gan/dngan/blocks.py
code served (permissive licence) · get_code("f959d134682f93e1")
How it ran

no invocation recorded.

conv2d_encoder Not yet run
unverified (harvested, no recorded run)
HedgehogCode/denoising-gan/dngan/blocks.py
code served (permissive licence) · get_code("b3c94561a1919d7b")
How it ran

no invocation recorded.

dncnn_generator_model Not yet run
unverified (harvested, no recorded run)
HedgehogCode/denoising-gan/dngan/generator.py
code served (permissive licence) · get_code("b0287fea83093ef3")
How it ran

no invocation recorded.

evaluate Not yet run
unverified (harvested, no recorded run)
HedgehogCode/denoising-gan/dngan/training.py
code served (permissive licence) · get_code("164ed0ee1bf2880d")
How it ran

no invocation recorded.

ms_ssim Not yet run
unverified (harvested, no recorded run)
HedgehogCode/denoising-gan/dngan/metrics.py
code served (permissive licence) · get_code("c45644bf0bcadf02")
How it ran

no invocation recorded.

parse_args Not yet run
unverified (harvested, no recorded run)
HedgehogCode/denoising-gan/checkpoint_to_h5.py
code served (permissive licence) · get_code("01f3cd76105ef1fe")
How it ran

no invocation recorded.

ssim Not yet run
unverified (harvested, no recorded run)
HedgehogCode/deep-plug-and-play-prior/dppp/metrics.py
code served (permissive licence) · get_code("06800f3dd30271e0")
How it ran

no invocation recorded.

ssim Not yet run
unverified (harvested, no recorded run)
HedgehogCode/denoising-gan/dngan/metrics.py
code served (permissive licence) · get_code("a45288c1028a27cc")
How it ran

no invocation recorded.

vgg19_ba_loss Not yet run
unverified (harvested, no recorded run)
HedgehogCode/denoising-gan/dngan/losses.py
code served (permissive licence) · get_code("c0ea75cc82eb3b38")
How it ran

no invocation recorded.

vgg19_loss Not yet run
unverified (harvested, no recorded run)
HedgehogCode/denoising-gan/dngan/losses.py
code served (permissive licence) · get_code("b4203746b902cc9a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 28 samples lifted from this paper's linked repositories, 28 carry a function identity and 0 do not. Of the 28 distinct functions with an identity, 5 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 5 later) and 23 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
pixel_unshuffle 10 other papers
10 later
2110.03220 (2021-10)
Gradient Step Denoiser for convergent Plug-and-Play
2204.07114 (2022-04)
Look Back and Forth: Video Super-Resolution with Explicit Temporal Difference Modeling
2205.05675 (2022-05)
NTIRE 2022 Challenge on Efficient Super-Resolution: Methods and Results
and 7 more not named here
upsample_pixelshuffle 10 other papers
10 later
2109.14573 (2021-09)
Towards Flexible Blind JPEG Artifacts Removal
2110.03220 (2021-10)
Gradient Step Denoiser for convergent Plug-and-Play
2205.05675 (2022-05)
NTIRE 2022 Challenge on Efficient Super-Resolution: Methods and Results
and 7 more not named here
conv 9 other papers
9 later
2109.14573 (2021-09)
Towards Flexible Blind JPEG Artifacts Removal
2203.05568 (2022-03)
Unfolded Deep Kernel Estimation for Blind Image Super-resolution
2205.05675 (2022-05)
NTIRE 2022 Challenge on Efficient Super-Resolution: Methods and Results
and 6 more not named here
test 4 other papers
4 later
2103.14006 (2021-03)
Designing a Practical Degradation Model for Deep Blind Image Super-Resolution
2203.13278 (2022-03)
Practical Blind Image Denoising via Swin-Conv-UNet and Data Synthesis
2308.12538 (2023-08)
Mutual-Guided Dynamic Network for Image Fusion
and 1 more not named here
test_pad 1 other paper
1 later
2203.13278 (2022-03)
Practical Blind Image Denoising via Swin-Conv-UNet and Data Synthesis

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

Recent works on plug-and-play image restoration have shown that a denoiser can implicitly serve as the image prior for model-based methods to solve many inverse problems. Such a property induces considerable advantages for plug-and-play image restoration (e.g., integrating the flexibility of model-based method and effectiveness of learning-based methods) when the denoiser is discriminatively learned via deep convolutional neural network (CNN) with large modeling capacity. However, while deeper and larger CNN models are rapidly gaining popularity, existing plug-and-play image restoration hinders its performance due to the lack of suitable denoiser prior. In order to push the limits of plug-and-play image restoration, we set up a benchmark deep denoiser prior by training a highly flexible and effective CNN denoiser. We then plug the deep denoiser prior as a modular part into a half quadratic splitting based iterative algorithm to solve various image restoration problems. We, meanwhile, provide a thorough analysis of parameter setting, intermediate results and empirical convergence to better understand the working mechanism. Experimental results on three representative image restoration tasks, including deblurring, super-resolution and demosaicing, demonstrate that the proposed plug-and-play image restoration with deep denoiser prior not only significantly outperforms other state-of-the-art model-based methods but also achieves competitive or even superior performance against state-of-the-art learning-based methods. The source code is available at https://github.com/cszn/DPIR.

For agents

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

get_harvested_code_for_paper("2008.13751")
get_code_for_paper("2008.13751")
have("2008.13751")

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

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

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

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

Connect an agent — have() is free.