Papers › Prompt-based Ingredient-Oriented All-in-One Image Restoration

Prompt-based Ingredient-Oriented All-in-One Image Restoration

6 Sep 2023arXiv:2309.03063archive 2025-07-28

Hu Gao, Depeng Dang

Image restoration aims to recover the high-quality images from their degraded observations. Since most existing methods have been dedicated into single degradation removal, they may not yield optimal results on other types of degradations, which do not satisfy the applications in real world scenarios. In this paper, we propose a novel data ingredient-oriented approach that leverages prompt-based learning to enable a single model to efficiently tackle multiple image degradation tasks. Specifically, we utilize a encoder to capture features and introduce prompts with degradation-specific information to guide the decoder in adaptively recovering images affected by various degradations. In order to model the local invariant properties and non-local information for high-quality image restoration, we combined CNNs operations and Transformers. Simultaneously, we made several key designs in the Transformer blocks (multi-head rearranged attention with prompts and simple-gate feed-forward network) to reduce computational requirements and selectively determines what information should be persevered to facilitate efficient recovery of potentially sharp images. Furthermore, we incorporate a feature fusion mechanism further explores the multi-scale information to improve the aggregated features. The resulting tightly interlinked hierarchy architecture, named as CAPTNet, extensive experiments demonstrate that our method performs competitively to the state-of-the-art.

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="2309.03063")

Code

Syntology Ran 11 of 12 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 11 ran with no contract checked.

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

Tombs98/CAPTNet officialmentioned on GitHubpytorchNOASSERTION 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

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

11ran
1unverified

Licence: 12 of the 12 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 Tombs98/CAPTNet. “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.

calculate_psnr Tombs98/CAPTNet/cal.py official repository ran licence not identified · pointer only · b0a14f63a15e798e · report
flow_warp Tombs98/CAPTNet/utils/arch_utils.py official repository ran licence not identified · pointer only · cd7e5b7320aed3d2 · report
is_frozen Tombs98/CAPTNet/utils/model_utils.py official repository ran no licence file found · pointer only · 930cddf0a4d80ab1 · report
is_image_file Tombs98/CAPTNet/dataset_RGB.py official repository ran no licence file found · pointer only · 91fca7a2b44569ad · report
load_start_epoch Tombs98/CAPTNet/utils/model_utils.py official repository ran no licence file found · pointer only · c3bea8c4ee6bef4a · report
make_layer Tombs98/CAPTNet/utils/arch_utils.py official repository ran licence not identified · pointer only · 09ff3a6c27965536 · report
numpyPSNR Tombs98/CAPTNet/utils/image_utils.py official repository ran no licence file found · pointer only · 92bb8e7c6d06af3f · report
resize_flow Tombs98/CAPTNet/utils/arch_utils.py official repository ran licence not identified · pointer only · 9081354b1a5b7c3e · report
rgb2ycbcr Tombs98/CAPTNet/cal.py official repository ran licence not identified · pointer only · c87a3a8603bcab49 · report
to_y_channel Tombs98/CAPTNet/cal.py official repository ran fingerprinted licence not identified · pointer only · 73f51043ee4046f1 · report
torchPSNR Tombs98/CAPTNet/utils/image_utils.py official repository ran fingerprinted no licence file found · pointer only · deaed84dcb1ccde1 · report
master_only Tombs98/CAPTNet/utils/dist_util.py official repository unverified licence not identified · pointer only · a2bb271e0661073c · report

Tasks

AllDeblurringDecoderImage DeblurringImage RestorationSingle Image Deraining

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Deblurring HIDE (trained on GOPRO) CAPTNet PSNR (sRGB) 31.86 #4 of 26 Archive leaderboard report
Deblurring HIDE (trained on GOPRO) CAPTNet SSIM (sRGB) 0.949 #4 of 26 Archive leaderboard report
Image Deblurring GoPro CAPTNet PSNR 33.74 #16 of 55 Archive leaderboard report
Image Deblurring GoPro CAPTNet SSIM 0.967 #16 of 55 Archive leaderboard report
Single Image Deraining Rain100L CAPTNet PSNR 39.22 #6 of 19 Archive leaderboard report
Single Image Deraining Rain100L CAPTNet SSIM 0.981 #6 of 19 Archive leaderboard report
Single Image Deraining Test1200 CAPTNet PSNR 34.77 #1 of 14 Archive leaderboard report
Single Image Deraining Test1200 CAPTNet SSIM 0.937 #1 of 14 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel 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