SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.19011 · NeurIPS · 2023

Efficient Test-Time Adaptation for Super-Resolution with Second-Order Degradation and Reconstruction

Bohan Zhuang, Mingkui Tan, Shuaicheng Niu, Thomas Li, Conv Conv, Zeshuai Deng, Zhuokun Chen, Resblock Conv, Conv Resblock, Upsample, Degradation Classifier

arXiv · PDF · Open in the Atlas

Code that ran

17 of 18 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; 4 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 11 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/2310.19011.json · badge: /api/ran/2310.19011.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
dengzeshuai/srtta canonical (classifier label)
classifier basis: census
13 ran · 1 no recorded run
DengZeshuai/SRTTA canonical (classifier label)
classifier basis: classifier_2025
4 ran · 0 no recorded run
FunctionStatusWhere it lives
analytic_kernel Ran
ran, violated the contract we drafted
dengzeshuai/srtta/src/utils/utils_blindsr.py
pointer only (licence: MIT); the stored copy get_code serves, from cvlab-stonybrook/large-image-diffusion, is pointer only (licence: NONE) · get_code("b04722a19845dc90")
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 cvlab-stonybrook/large-image-diffusion, 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.

anisotropic_Gaussian Ran
ran, honoured the contract we drafted
dengzeshuai/srtta/src/utils/utils_blindsr.py
code served (permissive licence) · get_code("83daf8f77e32f15b")
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 2, dtype family float, shape (15, 15) 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 scipy.stats as ss

def gm_blur_kernel(mean, cov, size=15):
    center = size / 2.0 + 0.5
    k = np.zeros([size, size])
    for y in range(size):
        for x in range(size):
            cy = y - center + 1
            cx = x - center + 1
            k[y, x] = ss.multivariate_normal.pdf([cx, cy], mean=mean, cov=cov)
    k = k / np.sum(k)
    return k

def anisotropic_Gaussian(ksize=15, theta=np.pi, l1=6, l2=6):
    """ generate an anisotropic Gaussian kernel
    Args:
        ksize : e.g., 15, kernel size
        theta : [0,  pi], rotation angle range
        l1    : [0.1,50], scaling of eigenvalues
        l2    : [0.1,l1], scaling of eigenvalues
        If l1 = l2, will get an isotropic Gaussian kernel.

    Returns:
        k     : kernel
    """
    v = np.dot(np.array([[np.cos(theta), -np.sin(theta)], [np.sin(theta), np.cos(theta)]]), np.array([1.0, 0.0]))
    V = np.array([[v[0], v[1]], [v[1], -v[0]]])
    D = np.array([[l1, 0], [0, l2]])
    Sigma = np.dot(np.dot(V, D), np.linalg.inv(V))
    k = gm_blur_kernel(mean=[0, 0], cov=Sigma, size=ksize)
    return k

ARGS = {
    "ksize": 15,
    "theta": np.pi / 4,
    "l1": 6.0,
    "l2": 3.0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (15, 15) — shape (15, 15) 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
circular_lowpass_kernel Ran
ran, honoured the contract we drafted
dengzeshuai/srtta/src/utils/utils_blindsr_plus.py
code served (permissive licence) · get_code("f5e137eeca622c4f")
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 2, dtype family float, shape (5, 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
from scipy import special

ARGS = {
    "cutoff": 1.5,
    "kernel_size": 5,
    "pad_to": 0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (5, 5) — shape (5, 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
collect_params Ran
ran; our contract draft was wrong, not the code
DengZeshuai/SRTTA/src/srtta.py
code served (permissive licence) · get_code("ed4d7d29de641df1")
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 tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Build a minimal model that has trainable parameters
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
        # Add a parameter that won't be collected (requires_grad=False)
        self.register_parameter('frozen_param', nn.Parameter(torch.randn(2), requires_grad=False))
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

ARGS = {
    'model': model
}
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 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
compute_loss Ran
ran; our contract draft was wrong, not the code
DengZeshuai/SRTTA/src/srtta.py
code served (permissive licence) · get_code("06a1ef9308233244")
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 Tensor, 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)

# Create small tensors for pred and target
# Using distinct dimensions: batch=2, features=4
pred = torch.randn(2, 4)
target = torch.randn(2, 4)

# eps is a float parameter with default value
eps = 0.001

ARGS = {
    "pred": pred,
    "target": target,
    "eps": eps,
}
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 Tensor, 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
configure_model Ran
ran; our contract draft was wrong, not the code
DengZeshuai/SRTTA/src/srtta.py
code served (permissive licence) · get_code("d06f6abb54aaa2af")
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 SimpleModel. 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
import logging

torch.manual_seed(0)
logging.basicConfig(level=logging.INFO)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.body = nn.Sequential(
            nn.Linear(4, 8),
            nn.ReLU()
        )
        self.head = nn.Linear(8, 2)
    
    def forward(self, x):
        x = self.body(x)
        x = self.head(x)
        return x

model = SimpleModel()

args = {
    'args': {},
    'model': model
}

ARGS = args
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 SimpleModel — a SimpleModel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleModel 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
create_metric_file Ran
ran; our contract draft was wrong, not the code
DengZeshuai/SRTTA/src/main_tta.py
code served (permissive licence) · get_code("ae434e6436712b40")
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 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 os
import tempfile
import torch

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

# Create a simple args object with required attributes
class Args:
    def __init__(self):
        self.save_dir = temp_dir
        self.metric_file = 'metrics.csv'
        self.reset = False

args = Args()

# Create some dummy image paths
img_paths = [
    '/path/to/image1.jpg',
    '/path/to/image2.jpg',
    '/path/to/image3.jpg'
]

# Define ARGS dictionary with all parameters
ARGS = {
    'args': args,
    'img_paths': img_paths,
    'corruption': 'GaussianBlur'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
pandas, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
default_conv Ran
ran; our contract draft was wrong, not the code
dengzeshuai/srtta/src/model/common.py
code served (permissive licence) · get_code("8b0e794d4d8f9b13")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Conv2d. 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)

ARGS = {
    'in_channels': 3,
    'out_channels': 5,
    'kernel_size': 3,
    'bias': True
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d 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
diff_round Ran
ran; our contract draft was wrong, not the code
dengzeshuai/srtta/src/utils/diffjpeg.py
code served (permissive licence) · get_code("9b12513b5aa17c52")
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

torch.manual_seed(0)

# The function diff_round takes a single parameter x (a tensor)
# and applies differentiable rounding operations on it.
# We need to create a small tensor to pass as argument.

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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 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
filter2D Ran
ran; our contract draft was wrong, not the code
dengzeshuai/srtta/src/utils/utils_blindsr_plus.py
code served (permissive licence) · get_code("d188e587bb71e8b3")
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
import torch.nn.functional as F

torch.manual_seed(0)

# Create a small image tensor: (batch=2, channels=3, height=4, width=4)
img = torch.randn(2, 3, 4, 4)

# Create a kernel tensor: (batch=2, kernel_size=3, kernel_size=3)
# Using odd kernel size (3x3) to satisfy the k % 2 == 1 check
kernel = torch.randn(2, 3, 3)

ARGS = {
    "img": img,
    "kernel": kernel,
}
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
get_image_paths Ran
ran; our contract draft was wrong, not the code
dengzeshuai/srtta/src/tool/prepare_tta_data.py
code served (permissive licence) · get_code("218ddff4636dd1ad")
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 glob
import tempfile
import shutil

# Create a temporary directory with some PNG files
temp_dir = tempfile.mkdtemp()

# Create a few dummy PNG files
for i in range(3):
    open(os.path.join(temp_dir, f'image_{i}.png'), 'w').close()

# Also add a non-PNG file to ensure glob filters correctly
open(os.path.join(temp_dir, 'notimage.jpg'), 'w').close()

ARGS = {
    'input_dir': temp_dir
}
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
is_image_file Ran
ran, violated the contract we drafted
dengzeshuai/srtta/src/utils/utils_image.py
pointer only (licence: MIT); the stored copy get_code serves, from QMoQ/OAPT, is pointer only (licence: NONE) · get_code("226f6afcd57ff476")
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 QMoQ/OAPT, 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.

mesh_grid Ran
ran; our contract draft was wrong, not the code
dengzeshuai/srtta/src/utils/basicsr_degradations.py
pointer only (licence: MIT); the stored copy get_code serves, from SHH-Han/DNF-SR, is pointer only (licence: NOASSERTION) · get_code("794d4f7fc184e7e5")
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 SHH-Han/DNF-SR, 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.

modcrop_np Ran
ran; our contract draft was wrong, not the code
dengzeshuai/srtta/src/utils/utils_blindsr.py
code served (permissive licence) · get_code("234d6e4ddfb2bd2b")
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 int, shape (6, 4, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a small test image: 7x5 (width x height) with 3 channels (RGB)
img = np.random.randint(0, 256, size=(7, 5, 3), dtype=np.uint8)

# Scale factor
sf = 2

ARGS = {
    "img": img,
    "sf": sf
}
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 int, shape (6, 4, 3) — shape (6, 4, 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
pdf2 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
dengzeshuai/srtta/src/utils/basicsr_degradations.py
pointer only (licence: MIT); the stored copy get_code serves, from SHH-Han/DNF-SR, is pointer only (licence: NOASSERTION) · get_code("321b9c73d589eb9e")
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 SHH-Han/DNF-SR, 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.

quality_to_factor Ran
ran, honoured the contract we drafted
dengzeshuai/srtta/src/utils/diffjpeg.py
code served (permissive licence) · get_code("d588215e006deb50")
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 float, 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

ARGS = {
    "quality": 75.0
}
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 float, 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
sigma_matrix2 Ran
ran, honoured the contract we drafted
dengzeshuai/srtta/src/utils/basicsr_degradations.py
pointer only (licence: MIT); the stored copy get_code serves, from SHH-Han/DNF-SR, is pointer only (licence: NOASSERTION) · get_code("e3444ff2b9d24600")
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 SHH-Han/DNF-SR, 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.

patches_from_image Not yet run
unverified (harvested, no recorded run)
dengzeshuai/srtta/src/utils/utils_image.py
pointer only (licence: MIT); the stored copy get_code serves, from QMoQ/OAPT, is pointer only (licence: NONE) · get_code("3984b3ec31e90ef0")
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 QMoQ/OAPT, 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. No invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 12 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 2 the same month, 11 later) and 6 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 62 other papers
41 dated earlier, 4 the same month, 17 later
1609.04802 (2016-09)
Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network
1703.07511 (2017-03)
Deep Photo Style Transfer
1710.10916 (2017-10)
StackGAN++: Realistic Image Synthesis with Stacked Generative Adversarial Networks
and 59 more not named here
default_conv 57 other papers
30 dated earlier, 2 the same month, 22 later, 3 same year, order not determinable · 2 only as an assembly brick
1707.02921 (2017-07)
Enhanced Deep Residual Networks for Single Image Super-Resolution
1803.02735 (2018-03)
Deep Back-Projection Networks For Super-Resolution
1803.04626 (2018-03)
Maintaining Natural Image Statistics with the Contextual Loss
and 54 more not named here
mesh_grid 8 other papers
8 later
2312.03641 (2023-12)
MotionCtrl: A Unified and Flexible Motion Controller for Video Generation
2403.05049 (2024-03)
XPSR: Cross-modal Priors for Diffusion-based Image Super-Resolution
2410.00418 (2024-10)
Posterior-Mean Rectified Flow: Towards Minimum MSE Photo-Realistic Image Restoration
and 5 more not named here
patches_from_image 8 other papers
6 dated earlier, 2 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
2303.00748 (2023-03)
Efficient and Explicit Modelling of Image Hierarchies for Image Restoration
and 5 more not named here
pdf2 8 other papers
8 later
2312.03641 (2023-12)
MotionCtrl: A Unified and Flexible Motion Controller for Video Generation
2403.05049 (2024-03)
XPSR: Cross-modal Priors for Diffusion-based Image Super-Resolution
2410.00418 (2024-10)
Posterior-Mean Rectified Flow: Towards Minimum MSE Photo-Realistic Image Restoration
and 5 more not named here
sigma_matrix2 8 other papers
8 later
2312.03641 (2023-12)
MotionCtrl: A Unified and Flexible Motion Controller for Video Generation
2403.05049 (2024-03)
XPSR: Cross-modal Priors for Diffusion-based Image Super-Resolution
2410.00418 (2024-10)
Posterior-Mean Rectified Flow: Towards Minimum MSE Photo-Realistic Image Restoration
and 5 more not named here
diff_round 6 other papers
5 dated earlier, 1 later
2108.09034 (2021-08)
AdvDrop: Adversarial Attack to DNNs by Dropping Information
2207.03574 (2022-07)
Demystifying the Adversarial Robustness of Random Transformation Defenses
and 3 more not named here
analytic_kernel 4 other papers
3 dated earlier, 1 later
2103.14006 (2021-03)
Designing a Practical Degradation Model for Deep Blind Image Super-Resolution
2305.01644 (2023-05)
Key-Locked Rank One Editing for Text-to-Image Personalization
2308.02228 (2023-08)
Painterly Image Harmonization using Diffusion Model
and 1 more not named here
anisotropic_Gaussian 4 other papers
3 dated earlier, 1 later
2103.14006 (2021-03)
Designing a Practical Degradation Model for Deep Blind Image Super-Resolution
2305.01644 (2023-05)
Key-Locked Rank One Editing for Text-to-Image Personalization
2308.02228 (2023-08)
Painterly Image Harmonization using Diffusion Model
and 1 more not named here
modcrop_np 4 other papers
3 dated earlier, 1 later
2103.14006 (2021-03)
Designing a Practical Degradation Model for Deep Blind Image Super-Resolution
2305.01644 (2023-05)
Key-Locked Rank One Editing for Text-to-Image Personalization
2308.02228 (2023-08)
Painterly Image Harmonization using Diffusion Model
and 1 more not named here
quality_to_factor 4 other papers
3 dated earlier, 1 later
2108.09034 (2021-08)
AdvDrop: Adversarial Attack to DNNs by Dropping Information
2309.03020 (2023-09)
SEAL: A Framework for Systematic Evaluation of Real-World Super-Resolution
and 1 more not named here
filter2D 1 other paper
1 dated earlier
2309.03020 (2023-09)
SEAL: A Framework for Systematic Evaluation of Real-World Super-Resolution

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

Image super-resolution (SR) aims to learn a mapping from low-resolution (LR) to high-resolution (HR) using paired HR-LR training images. Conventional SR methods typically gather the paired training data by synthesizing LR images from HR images using a predetermined degradation model, e.g., Bicubic down-sampling. However, the realistic degradation type of test images may mismatch with the training-time degradation type due to the dynamic changes of the real-world scenarios, resulting in inferior-quality SR images. To address this, existing methods attempt to estimate the degradation model and train an image-specific model, which, however, is quite time-consuming and impracticable to handle rapidly changing domain shifts. Moreover, these methods largely concentrate on the estimation of one degradation type (e.g., blur degradation), overlooking other degradation types like noise and JPEG in real-world test-time scenarios, thus limiting their practicality. To tackle these problems, we present an efficient test-time adaptation framework for SR, named SRTTA, which is able to quickly adapt SR models to test domains with different/unknown degradation types. Specifically, we design a second-order degradation scheme to construct paired data based on the degradation type of the test image, which is predicted by a pre-trained degradation classifier. Then, we adapt the SR model by implementing feature-level reconstruction learning from the initial test image to its second-order degraded counterparts, which helps the SR model generate plausible HR images. Extensive experiments are conducted on newly synthesized corrupted DIV2K datasets with 8 different degradations and several real-world datasets, demonstrating that our SRTTA framework achieves an impressive improvement over existing methods with satisfying speed. The source code is available at https://github.com/DengZeshuai/SRTTA.

For agents

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

get_harvested_code_for_paper("2310.19011")
get_code_for_paper("2310.19011")
have("2310.19011")

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

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

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

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

Connect an agent — have() is free.