SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · Wang_Timestep-Aware_Diffusion_Model_for_Extreme_Image_Rescaling_ICCV_2025_paper · ICCV · 2025

Timestep-Aware Diffusion Model for Extreme Image Rescaling

Ce Wang, Zhenzhong Chen, Zhenyu Hu, Wanjie Sun

Open in the Atlas

Code that ran

6 of 9 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, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 3 no recorded run), measured 2026-11-24; 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/Wang_Timestep-Aware_Diffusion_Model_for_Extreme_Image_Rescaling_ICCV_2025_paper.json · badge: /api/ran/Wang_Timestep-Aware_Diffusion_Model_for_Extreme_Image_Rescaling_ICCV_2025_paper.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
wwangcece/TADM canonical (classifier label)
classifier basis: census
6 ran · 3 no recorded run
FunctionStatusWhere it lives
AttentionBlock Ran
ran; our contract draft was wrong, not the code
wwangcece/TADM/basicsr/archs/dfdnet_util.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from RuoyuGuo/P-PatchDiff, is pointer only (licence: NONE) · get_code("8d3cd21cd5c3181a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from RuoyuGuo/P-PatchDiff, 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.

adaptive_instance_normalization Ran
ran; our contract draft was wrong, not the code
wwangcece/TADM/basicsr/archs/dfdnet_util.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from RuoyuGuo/P-PatchDiff, is pointer only (licence: NONE) · get_code("b7c6741eed724350")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from RuoyuGuo/P-PatchDiff, 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.

calc_mean_std Ran
ran; our contract draft was wrong, not the code
wwangcece/TADM/basicsr/archs/dfdnet_util.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from RuoyuGuo/P-PatchDiff, is pointer only (licence: NONE) · get_code("a7e8af4ef5efc131")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from RuoyuGuo/P-PatchDiff, 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.

get_layer_number Ran
ran, honoured the contract we drafted
wwangcece/TADM/src/tadm_tile.py
code served (permissive licence) · get_code("4781dc4f05a8d9b8")
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 re

def get_layer_number(module_name):
    base_layers = {'down_blocks': 0, 'mid_block': 4, 'up_blocks': 5}
    if module_name == 'conv_out':
        return 9
    base_layer = None
    for key in base_layers:
        if key in module_name:
            base_layer = base_layers[key]
            break
    if base_layer is None:
        return None
    additional_layers = int(re.findall('\\.(\\d+)', module_name)[0])
    final_layer = base_layer + additional_layers
    return final_layer

# Test cases for different module names
ARGS = {
    'module_name': 'down_blocks.2.conv'
}
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 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
load_image Ran
ran, honoured the contract we drafted
wwangcece/TADM/src/get_z.py
code served (permissive licence) · get_code("7b436779405da093")
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 (1, 3, 32, 32) 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 tempfile
import os
from PIL import Image

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

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

ARGS = {
    "path": image_path,
    "image_size": 32
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, torch, torchvision — 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 (1, 3, 32, 32) — shape (1, 3, 32, 32) 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
zero_module Ran
ran; our contract draft was wrong, not the code
wwangcece/TADM/src/tpm_patch.py
code served (permissive licence) · get_code("129b804760b3115f")
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 SimpleModule. 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 a simple module with some parameters
class SimpleModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
        self.conv = nn.Conv1d(2, 2, 3)
    
    def forward(self, x):
        return x

module = SimpleModule()

# Verify the module has non-zero parameters before zeroing
for p in module.parameters():
    assert p.abs().sum() > 0, "Parameters should be non-zero initially"

ARGS = {
    "module": module
}
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 SimpleModule — a SimpleModule output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleModule 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
extract_latents Not yet run
unverified (harvested, no recorded run)
wwangcece/TADM/src/get_z.py
code served (permissive licence) · get_code("14cadbd8913286a6")
How it ran

no invocation recorded.

make_1step_sched Not yet run
unverified (harvested, no recorded run)
wwangcece/TADM/src/model.py
code served (permissive licence) · get_code("ac23b76568c40fd2")
How it ran

no invocation recorded.

my_lora_fwd Not yet run
unverified (harvested, no recorded run)
wwangcece/TADM/src/model.py
code served (permissive licence) · get_code("ec3d6f998e01b3d2")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 4 later) and 2 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
zero_module 196 other papers
167 dated earlier, 6 later, 23 same year, order not determinable · 49 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
and 193 more not named here
adaptive_instance_normalization 16 other papers
14 dated earlier, 1 later, 1 same year, order not determinable
Wang_Deep_Arbitrary-Scale_Image_Super-Resolution_via_Scale-Equivariance_Pursuit_CVPR_2023_paper (2023 (year only))
Deep Arbitrary-Scale Image Super-Resolution via Scale-Equivariance Pursuit
2303.04970 (2023-03)
LMR: A Large-Scale Multi-Reference Dataset for Reference-based Super-Resolution
2304.01064 (2023-04)
Real-time 6K Image Rescaling with Rate-distortion Optimization
and 13 more not named here
AttentionBlock 14 other papers
12 dated earlier, 1 later, 1 same year, order not determinable
Wang_Deep_Arbitrary-Scale_Image_Super-Resolution_via_Scale-Equivariance_Pursuit_CVPR_2023_paper (2023 (year only))
Deep Arbitrary-Scale Image Super-Resolution via Scale-Equivariance Pursuit
2303.04970 (2023-03)
LMR: A Large-Scale Multi-Reference Dataset for Reference-based Super-Resolution
2304.01064 (2023-04)
Real-time 6K Image Rescaling with Rate-distortion Optimization
and 11 more not named here
calc_mean_std 14 other papers
12 dated earlier, 1 later, 1 same year, order not determinable
Wang_Deep_Arbitrary-Scale_Image_Super-Resolution_via_Scale-Equivariance_Pursuit_CVPR_2023_paper (2023 (year only))
Deep Arbitrary-Scale Image Super-Resolution via Scale-Equivariance Pursuit
2303.04970 (2023-03)
LMR: A Large-Scale Multi-Reference Dataset for Reference-based Super-Resolution
2304.01064 (2023-04)
Real-time 6K Image Rescaling with Rate-distortion Optimization
and 11 more not named here
get_layer_number 1 other paper
1 dated earlier
2409.17058 (2024-09)
Degradation-Guided One-Step Image Super-Resolution with Diffusion Priors
make_1step_sched 1 other paper
1 dated earlier
2409.17058 (2024-09)
Degradation-Guided One-Step Image Super-Resolution with Diffusion Priors
my_lora_fwd 1 other paper
1 dated earlier
2409.17058 (2024-09)
Degradation-Guided One-Step Image Super-Resolution with Diffusion Priors

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-24.

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 rescaling aims to learn the optimal low-resolution (LR) image that can be accurately reconstructed to its original high-resolution (HR) counterpart, providing an efficient image processing and storage method for ultra-high definition media. However, extreme downscaling factors pose significant challenges to the upscaling process due to its highly ill-posed nature, causing existing image rescaling methods to struggle in generating semantically correct structures and perceptual friendly textures. In this work, we propose a novel framework called Timestep-Aware Diffusion Model (TADM) for extreme image rescaling, which performs rescaling operations in the latent space of a pretrained autoencoder and effectively leverages powerful natural image priors learned by a pre-trained text-to-image diffusion model. Specifically, TADM adopts a pseudoinvertible module to establish the bidirectional mapping between the latent features of the HR image and the targetsized LR image. Then, the rescaled latent features are enhanced by a pre-trained diffusion model to generate more faithful details. Considering the spatially non-uniform degradation caused by the rescaling operation, we propose a novel time-step alignment strategy, which can adaptively allocate the generative capacity of the diffusion model based on the quality of the reconstructed latent features. Extensive experiments demonstrate the superiority of TADM over previous methods in both quantitative and qualitative evaluations. The code will be available at: https: //github.com/wwangcece/TADM .

For agents

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

get_harvested_code_for_paper("Wang_Timestep-Aware_Diffusion_Model_for_Extreme_Image_Rescaling_ICCV_2025_paper")
get_code_for_paper("Wang_Timestep-Aware_Diffusion_Model_for_Extreme_Image_Rescaling_ICCV_2025_paper")
have("Wang_Timestep-Aware_Diffusion_Model_for_Extreme_Image_Rescaling_ICCV_2025_paper")

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

curl https://syntology.ai/api/ran/Wang_Timestep-Aware_Diffusion_Model_for_Extreme_Image_Rescaling_ICCV_2025_paper.json

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

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

Connect an agent — have() is free.