Papers › Dynamic Pre-training: Towards Efficient and Scalable All-in-One Image Restoration

Dynamic Pre-training: Towards Efficient and Scalable All-in-One Image Restoration

2 Apr 2024arXiv:2404.02154archive 2025-07-28

Akshay Dudhane, Omkar Thawakar, Syed Waqas Zamir, Salman Khan, Fahad Shahbaz Khan, Ming-Hsuan Yang

All-in-one image restoration tackles different types of degradations with a unified model instead of having task-specific, non-generic models for each degradation. The requirement to tackle multiple degradations using the same model can lead to high-complexity designs with fixed configuration that lack the adaptability to more efficient alternatives. We propose DyNet, a dynamic family of networks designed in an encoder-decoder style for all-in-one image restoration tasks. Our DyNet can seamlessly switch between its bulkier and lightweight variants, thereby offering flexibility for efficient model deployment with a single round of training. This seamless switching is enabled by our weights-sharing mechanism, forming the core of our architecture and facilitating the reuse of initialized module weights. Further, to establish robust weights initialization, we introduce a dynamic pre-training strategy that trains variants of the proposed DyNet concurrently, thereby achieving a 50% reduction in GPU hours. Our dynamic pre-training strategy eliminates the need for maintaining separate checkpoints for each variant, as all models share a common set of checkpoints, varying only in model depth. This efficient strategy significantly reduces storage overhead and enhances adaptability. To tackle the unavailability of large-scale dataset required in pre-training, we curate a high-quality, high-resolution image dataset named Million-IRD, having 2M image samples. We validate our DyNet for image denoising, deraining, and dehazing in all-in-one setting, achieving state-of-the-art results with 31.34\% reduction in GFlops and a 56.75\% reduction in parameters compared to baseline models. The source codes and trained models are available at https://github.com/akshaydudhane16/DyNet.

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

Code

Syntology Ran 12 of 15 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 2 ran · fixture could not drive it; 10 ran with no contract checked.

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

akshaydudhane16/dynet 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

15 samples harvested; 12 ran; 0 honoured the contract we drafted; 3 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.

2ran · fixture could not drive it
10ran
3unverified

Licence: 0 of the 15 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 akshaydudhane16/dynet. “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.

contributions akshaydudhane16/dynet/utils/imresize.py official repository ran MIT (permissive) · b921438690ac017f · report
crop_a_image akshaydudhane16/dynet/utils/image_io.py official repository ran MIT (permissive) · 8ade57fc1fb950bb · report
crop_img akshaydudhane16/dynet/utils/image_utils.py official repository ran fingerprinted MIT (permissive) · 11c75b3b8bc61c21 · report
crop_patch akshaydudhane16/dynet/utils/image_utils.py official repository ran fingerprinted MIT (permissive) · 86abcfa12b6612f0 · report
fix_scale_and_size akshaydudhane16/dynet/utils/imresize.py official repository ran MIT (permissive) · ee75635bb6c497f1 · report
get_position_from_periods akshaydudhane16/dynet/utils/schedulers.py official repository ran fingerprinted MIT (permissive) · cd569444547de84f · report
imresize akshaydudhane16/dynet/utils/imresize.py official repository ran MIT (permissive) · c38287d2acea0ce0 · report
linear_warmup_decay akshaydudhane16/dynet/utils/schedulers.py official repository ran MIT (permissive) · 442cb54f21dcfe50 · report
prepare_gt_img akshaydudhane16/dynet/utils/image_io.py official repository ran MIT (permissive) · e91553b51010dfd6 · report
prepare_hazy_image akshaydudhane16/dynet/utils/image_io.py official repository ran MIT (permissive) · 8564be766b7cda56 · report
to_3d akshaydudhane16/dynet/net/DyNet_large.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 82a15cc1e46f7e4d · report
to_4d akshaydudhane16/dynet/net/DyNet_large.py official repository ran · fixture could not drive it MIT (permissive) · b20f2a5df739a59e · report
accuracy akshaydudhane16/dynet/utils/val_utils.py official repository unverified MIT (permissive) · 418284b6911ecae5 · report
compute_psnr_ssim akshaydudhane16/dynet/utils/val_utils.py official repository unverified MIT (permissive) · c25cfc27015346f2 · report
slice_image2patches akshaydudhane16/dynet/utils/image_utils.py official repository unverified MIT (permissive) · 779d9bd47765629e · report

Tasks

AllDecoderDenoisingImage DenoisingImage RestorationRain Removal

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SET

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