am_promptir_all_in_one
PromptIR restores images with unknown degradations using learned prompts that guide the decoder.
Diffusion and generative · 116 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 63.9K
- Operations
- 116
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2023
- Authors
- Vaishnav Potlapalli, Syed Waqas Zamir, Salman Hameed Khan, Fahad Shahbaz Khan
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m11724
- Graph hash
- 2fb39d1d8fa8300b46a36da77921a188e4a46748178b475337b866b1de02da8e
- Skeleton hash
- 40af348b41adba4969d1250378980c4dc18eb6bc84a3dc2b3ef74926e904b7ab
- Architecture hash
- 719b9360a6b5c325c544ebbd5fe494a280c7f3388c54be3beee91f379c147a79
- Diagram SHA-256
- 748a7be2ddc6d1ce30decaa70bf77121d80e44f3b9a6cd09e52cc6aeea56ac8a
- TorchLens version
- 2.35.3
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
How this diagram was made
menagerie.classics.am_promptir_all_in_one:build_am_promptir_all_in_one: build({}) What it is
PromptIR is a prompt-based approach to All-In-One image restoration, meant to restore images from various types and levels of degradation with one model. The paper notes that earlier deep methods require training individual models for each degradation and knowing the input degradation type. PromptIR relies solely on the input image to recover a clean image, without prior knowledge of the degradation.
The key element is the prompt block, which generates learnable prompt parameters and then uses them to guide the model during restoration. Prompts here are a set of tunable parameters that encode discriminative information about types of image degradation. A prompt generation module (PGM) predicts attention-based weights from the input features and applies them to the prompt components to yield input-conditioned prompts. A prompt interaction module (PIM) then concatenates the prompts with the input features along the channel dimension and passes them through a Transformer block. The authors apply PromptIR to Restormer and describe the prompt block as generic.
The paper's network places one prompt block between every two consecutive decoder levels, 3 in total, and uses 5 prompt components. Averaged across the paper's all-in-one dehazing, deraining and denoising tests, PromptIR is reported to gain 0.86 dB over the previous all-in-one method AirNet. On the SOTS dehazing benchmark in the single-task setting, the reported gain over AirNet is 8.13 dB.
Key idea. PromptIR adds a plug-in prompt block that generates input-conditioned prompts encoding degradation information and uses them to guide a restoration network, letting one model restore images with unknown degradations.
- PromptIR
- all-in-one image restoration
- blind image restoration
- prompt learning
- image denoising
- image deraining
- image dehazing
- degradation prompts
- prompt block
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{potlapalli2023promptirpromptingallinoneblind,
title={PromptIR: Prompting for All-in-One Blind Image Restoration},
author={Vaishnav Potlapalli and Syed Waqas Zamir and Salman Khan and Fahad Shahbaz Khan},
year={2023},
eprint={2306.13090},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2306.13090},
}