Papers › Efficient Image Deblurring Networks based on Diffusion Models

Efficient Image Deblurring Networks based on Diffusion Models

11 Jan 2024arXiv:2401.05907archive 2025-07-28

Kang Chen, Yuanjie Liu

This article presents a sliding window model for defocus deblurring, named Swintormer, which achieves the best performance to date with remarkably low memory usage. This method utilizes a diffusion model to generate latent prior features, aiding in the restoration of more detailed images. Additionally, by adapting the sliding window strategy, it incorporates specialized Transformer blocks to enhance inference efficiency. The adoption of this new approach has led to a substantial reduction in Multiply-Accumulate Operations (MACs) per iteration, drastically cutting down memory requirements. In comparison to the currently leading GRL method, our Swintormer model significantly reduces the computational load that must depend on memory capacity, from 140.35 GMACs to 8.02 GMACs, while improving the Peak Signal-to-Noise Ratio (PSNR) for defocus deblurring from 27.04 dB to 27.07 dB. This innovative technique enables the processing of higher resolution images on memory-limited devices, vastly broadening potential application scenarios. The article wraps up with an ablation study, offering a comprehensive examination of how each network module contributes to the final performance.The source code and model will be available at the following website: https://github.com/bnm6900030/swintormer.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 17 code samples harvested from 1 repository linked to this paper: 14 ran (of which 0 constructed an object rather than computing a result; 6 with no instrument failure: 1 honoured, 2 violated, 3 with no contract checked; 8 where Syntology's instrument failed) · 3 unverified. Where Syntology's instrument failed: 4 where our contract draft was wrong; 4 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 17 samples from 1 repository, 14 ran (6 with no instrument failure; 8 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-26 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed. 3 of the 14 samples that ran have no recorded date.

bnm6900030/swintormer officialmentioned in paperpytorchSyntology: 17 samples, 14 ran (8 instrument-failed) · 3 unverified 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

17 samples harvested: 14 ran (of which 0 constructed an object rather than computing a result; 6 with no instrument failure: 1 honoured, 2 violated, 3 with no contract checked; 8 where Syntology's instrument failed) · 3 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

1ran · honoured contract
2ran · violated contract
4ran · our draft was wrong
4ran; the contract check could not run
3ran
3unverified

Licence: 17 of the 17 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 bnm6900030/swintormer. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. For 1 sample that ran, the graph records a signature this page does not show: an argument's recorded type or element kind is a printout of an object in Syntology's harness (such as a mock object, a class or a pandas printout), not the type of an input, so it does not describe the call's shape. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

bnm6900030/swintormer official repository 17 samples, 14 ran (8 instrument-failed) · 3 unverified
default in 430 papers ldm/modules/attention.py ran · violated contract no licence file found · pointer only · 424012cb37b31172 · report fixture: signature val:NoneType/0/?, d:callable/0/? · returned int · level recorded 2026-09-22
exists in 528 papers
census: 5 implementations from 103 papers, 1 distinct output on one shared input this sample: bucket 1 of 1, arg 1: rank 1, kind int, dtype int64
ldm/modules/attention.py ran · violated contract no licence file found · pointer only · aa5486a3650902d8 · report fixture: signature val:Tensor/1/int · returned bool · level recorded, date not recorded
get_position_from_periods in 59 papers basicsr/models/lr_scheduler.py ran; the contract check could not run (RAISES) fingerprinted no licence file found · pointer only · cd569444547de84f · report fixture: signature iteration:int/0/int, cumulative_period:list/1/int · returned int · level recorded 2026-09-24
get_time in 20 papers print_loss.py ran · honoured contract no licence file found · pointer only · dbdb5c1cd7f7e7b8 · report fixture: signature name:str/0/str · returned int · level recorded 2026-09-24
gradient_penalty_loss in 20 papers basicsr/losses/gan_loss.py ran · our draft was wrong no licence file found · pointer only · 81eb425a41a7c2a1 · report fixture: signature discriminator:callable/0/?, real_data:Tensor/4/float, fake_data:Tensor/4/float, weight:Tensor/4/float · returned Tensor · level recorded 2026-09-25
grid in 20 papers ldm/models/autoencoder.py ran no licence file found · pointer only · fb932e0777ff7f87 · report fixture: signature x:Tensor/4/float, h:int/0/int, w:int/0/int, size:int/0/int · returned tuple · level recorded 2026-09-24
grid_verse ldm/models/autoencoder.py ran no licence file found · pointer only · 5341ef403ac564fe · report fixture: signature outs:Tensor/4/float, idxes:list/1/dict, h:int/0/int, w:int/0/int, size:int/0/int · returned Tensor · level recorded 2026-09-24
reduce_loss in 75 papers basicsr/losses/loss_util.py ran; the contract check could not run (RAISES) no licence file found · pointer only · a648a03a952822c0 · report fixture: signature loss:Tensor/2/float, reduction:str/0/str · returned Tensor · level recorded 2026-09-26
softmax_one basicsr/archs/Swintormer_arch.py ran no licence file found · pointer only · 3bd972f47b2e2617 · report fixture: signature x:Tensor/2/float, dim:int/0/int, _stacklevel:int/0/int, dtype:NoneType/0/? · returned Tensor · level recorded 2026-09-24
tensor2img in 35 papers print_loss.py ran · our draft was wrong no licence file found · pointer only · 0dbb3b3557dc64a6 · report fixture: returned ndarray · level recorded 2026-09-24
to_3d in 66 papers
census: 3 implementations from 20 papers, 1 distinct output on one shared input this sample: bucket 1 of 1, arg 1: rank 4, kind float, dtype float32
basicsr/archs/Swintormer_arch.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant fingerprinted no licence file found · pointer only · 82a15cc1e46f7e4d · report fixture: signature x:Tensor/4/float · returned Tensor · level recorded, date not recorded
to_4d in 69 papers basicsr/archs/Swintormer_arch.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant no licence file found · pointer only · b20f2a5df739a59e · report fixture: signature x:Tensor/3/float, h:int/0/int, w:int/0/int · returned Tensor · level recorded, date not recorded
uniq in 117 papers ldm/modules/attention.py ran · our draft was wrong no licence file found · pointer only · 9a299fe5ae09e407 · report fixture: signature arr:list/1/int · returned dict_keys · level recorded 2026-09-22
weight_reduce_loss in 61 papers basicsr/losses/loss_util.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 1ba39317ea81871a · report fixture: signature loss:Tensor/2/float, weight:Tensor/2/float, reduction:str/0/str · returned Tensor · level recorded 2026-09-26
g_path_regularize in 20 papers basicsr/losses/gan_loss.py unverified no licence file found · pointer only · fe05416387de89c6 · report
r1_penalty in 19 papers basicsr/losses/gan_loss.py unverified no licence file found · pointer only · c7cba9053f3cadb5 · report
weighted_loss in 53 papers basicsr/losses/loss_util.py unverified no licence file found · pointer only · cf63f8afc13f62a7 · report

Tasks

DeblurringImage Deblurring

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDiffusionDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

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