Papers › Unlimited-Size Diffusion Restoration

Unlimited-Size Diffusion Restoration

1 Mar 2023arXiv:2303.00354archive 2025-07-28

Yinhuai Wang, Jiwen Yu, Runyi Yu, Jian Zhang

Recently, using diffusion models for zero-shot image restoration (IR) has become a new hot paradigm. This type of method only needs to use the pre-trained off-the-shelf diffusion models, without any finetuning, and can directly handle various IR tasks. The upper limit of the restoration performance depends on the pre-trained diffusion models, which are in rapid evolution. However, current methods only discuss how to deal with fixed-size images, but dealing with images of arbitrary sizes is very important for practical applications. This paper focuses on how to use those diffusion-based zero-shot IR methods to deal with any size while maintaining the excellent characteristics of zero-shot. A simple way to solve arbitrary size is to divide it into fixed-size patches and solve each patch independently. But this may yield significant artifacts since it neither considers the global semantics of all patches nor the local information of adjacent patches. Inspired by the Range-Null space Decomposition, we propose the Mask-Shift Restoration to address local incoherence and propose the Hierarchical Restoration to alleviate out-of-domain issues. Our simple, parameter-free approaches can be used not only for image restoration but also for image generation of unlimited sizes, with the potential to be a general tool for diffusion models. Code: https://github.com/wyhuai/DDNM/tree/main/hq_demo

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2303.00354")

Code

Syntology Ran 16 of 22 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 1 ran · honoured contract; 6 ran · our draft was wrong; 2 ran · fixture could not drive it; 7 ran with no contract checked.

By repository: official repository: 22 samples from 1 repository, 16 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

wyhuai/ddnm officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

22 samples harvested; 16 ran; 1 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
6ran · our draft was wrong
2ran · fixture could not drive it
7ran
6unverified

Licence: 0 of the 22 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from wyhuai/ddnm. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

MeanUpsample wyhuai/ddnm/guided_diffusion/diffusion.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 12012b9130641107 · report
Normalize wyhuai/ddnm/guided_diffusion/models.py official repository ran · our draft was wrong MIT (permissive) · c3a6b977022957cb · report
color2gray wyhuai/ddnm/functions/svd_operators.py official repository ran fingerprinted MIT (permissive) · dd9fc69e1eb813b9 · report
color2gray wyhuai/ddnm/guided_diffusion/diffusion.py official repository ran fingerprinted MIT (permissive) · af792c258aa85c57 · report
compute_alpha wyhuai/ddnm/functions/svd_ddnm.py official repository ran · our draft was wrong MIT (permissive) · 9215fb189fbfb9f4 · report
get_gaussian_noisy_img wyhuai/ddnm/guided_diffusion/diffusion.py official repository ran fingerprinted MIT (permissive) · 17b8a580da43c920 · report
get_param_groups_and_shapes wyhuai/ddnm/guided_diffusion/fp16_util.py official repository ran MIT (permissive) · e41367ad14ff58fd · report
get_timestep_embedding wyhuai/ddnm/guided_diffusion/models.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · cb49209c125de1b4 · report
gray2color wyhuai/ddnm/functions/svd_operators.py official repository ran fingerprinted MIT (permissive) · 6d117fa2c3ad8438 · report
list_dir wyhuai/ddnm/datasets/utils.py official repository ran · our draft was wrong MIT (permissive) · 915e1c6c38494be9 · report
list_files wyhuai/ddnm/datasets/utils.py official repository ran · our draft was wrong MIT (permissive) · 208e196e9582a9a6 · report
make_master_params wyhuai/ddnm/guided_diffusion/fp16_util.py official repository ran MIT (permissive) · e20dd5102da3b050 · report
md5_hash wyhuai/ddnm/functions/ckpt_util.py official repository ran · our draft was wrong MIT (permissive) · 07d90bd6ae1be7db · report
nonlinearity wyhuai/ddnm/guided_diffusion/models.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 3137073275f8c21a · report
pil_loader wyhuai/ddnm/datasets/imagenet_subset.py official repository ran · honoured contract MIT (permissive) · f321f54723433661 · report
unflatten_master_params wyhuai/ddnm/guided_diffusion/fp16_util.py official repository ran MIT (permissive) · 64fff1e30802b815 · report
accimage_loader wyhuai/ddnm/datasets/imagenet_subset.py official repository unverified MIT (permissive) · 404fb2b2daa1ae78 · report
check_integrity wyhuai/ddnm/datasets/utils.py official repository unverified MIT (permissive) · 7345763c9b9300fb · report
ddnm_diffusion wyhuai/ddnm/functions/svd_ddnm.py official repository unverified MIT (permissive) · ad4e0ba376bb7ae7 · report
default_loader wyhuai/ddnm/datasets/imagenet_subset.py official repository unverified MIT (permissive) · 7bf07d5f59aae36d · report
get_ckpt_path wyhuai/ddnm/functions/ckpt_util.py official repository unverified MIT (permissive) · d80f2146cfc85e9a · report
inverse_data_transform wyhuai/ddnm/functions/svd_ddnm.py official repository unverified MIT (permissive) · 39ba407e4342bdd3 · report

Tasks

Image GenerationImage Restoration

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections