All models

mprnet_deraining

A three-stage image restoration network, in its image deraining configuration.

693 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (54 KB)

Open in a new tab

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
2.9M
Operations
693
Framework
PyTorch
Recurrent
No
Published
CVPR (arXiv 2021)
Cited by
2,085 (as of 9 October 2026)
Authors
Syed Waqas Zamir, Aditya Arora, Salman Hameed Khan and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m12037
Graph hash
be0d479e1e0ddfe9b3616ee17348479827e2db1ba75478545d185fd441aaa087
Skeleton hash
099db689b9db705afac32533a318e7a9a3d33567851842368d7b32d67bc35b44
Architecture hash
3e8a7d73fdd2ed345a917c132fdc86bbf2e7a47277b91078bc4bc01c1dde127c
Diagram SHA-256
3f10cdc057f95326d541565da6ee9ca1a741f2f03fee92d6faa73580f840c0aa
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.mprnet:build_mprnet_deraining: build({})

What it is

MPRNet is an image restoration network that recovers a clean image in three stages instead of one pass. The paper argues that existing designs produce outputs that are either spatially accurate or contextually reliable, but not both. Its first two stages are encoder-decoder subnetworks that gather broad context. The last stage works at the original input resolution, with no downsampling, to keep fine texture.

Between every two stages sits a supervised attention module (SAM), which uses the previous stage's prediction to compute attention maps that refine the features passed on. A cross-stage feature fusion (CSFF) mechanism carries multi-scale features from earlier stages to later ones. Each stage predicts a residual image that is added to the degraded input rather than predicting the restored image directly.

The paper sets the width by task: 40 channels for deraining, 80 for denoising and 96 for deblurring. For deraining it reports an average gain of 1.98 dB over MSPFN across all of its deraining test sets. It also reports that MPRNet has 3.7× fewer parameters than MSPFN and is 2.4× faster.

Key idea. MPRNet restores images in stages, using encoder-decoder subnetworks first and an original-resolution subnetwork last, linked by supervised attention and cross-stage feature fusion.

  • MPRNet
  • multi-stage progressive image restoration
  • image deraining
  • rain removal
  • image restoration
  • supervised attention module
  • cross-stage feature fusion
  • deblurring
  • denoising

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{zamir2021multistageprogressiveimagerestoration,
      title={Multi-Stage Progressive Image Restoration}, 
      author={Syed Waqas Zamir and Aditya Arora and Salman Khan and Munawar Hayat and Fahad Shahbaz Khan and Ming-Hsuan Yang and Ling Shao},
      year={2021},
      eprint={2102.02808},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2102.02808}, 
}