All models

DiffUIR

DiffUIR, a conditional diffusion model that restores several kinds of degraded image with one network.

Diffusion and generative · 944 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 (5 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
36.3M
Operations
944
Framework
PyTorch
Recurrent
No
Published
CVPR 2024
Cited by
85 (as of 25 October 2026)
Authors
Dian Zheng, Xiao-Ming Wu, Shuzhou Yang and others
License
MIT
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
m16120
Graph hash
14aefb62c3f0f486dbe386eb42a7afbd17584f02af168dcef084b5edacfa8d06
Skeleton hash
cfa8bb4a2b2ca9e4589efb850a62c328c1573a8b4556fa57259666aee2efeaf5
Architecture hash
0017d1e0fcab4fc7cca88aeb0c0a2874800107d9b470c2e94f73a6b1c371cd68
Diagram SHA-256
b771c17e0b82ad82f9ab26db42687c1b8d18fdee18980b7d385c0fbfcbe22fd7
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

DiffUIR is a diffusion model for universal image restoration, where a single network has to handle different kinds of degradation at once. The paper contrasts it with methods that use task-specific conditions such as prompts to learn each degradation separately, which it says ignore the information the tasks share.

The paper calls its strategy selective hourglass mapping. A shared distribution term (SDT) is built into the diffusion algorithm and gradually maps the different degradation distributions into a shared one. In the reverse process, the SDT and strong condition guidance steer that shared distribution back to the task-specific one.

The paper reports results on five image restoration tasks and 22 benchmarks, in a universal setting and a zero-shot generalization setting. The five tasks are low-light enhancement, deblurring, dehazing, deraining and desnowing. The repository lists four released sizes, from DiffUIR-T (0.89M) to DiffUIR-L (36.26M). The authors credit RDDM as an inspiration and say part of the code is migrated from it.

Key idea. DiffUIR adds a shared distribution term to the diffusion algorithm so that different degradation distributions map to a shared one before being guided back to task-specific outputs.

  • diffuir
  • selective hourglass mapping
  • universal image restoration
  • diffusion image restoration
  • shared distribution term
  • sdt
  • deraining
  • dehazing
  • deblurring
  • low-light enhancement

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

Cite the paper

@misc{zheng2024selectivehourglassmappinguniversal,
      title={Selective Hourglass Mapping for Universal Image Restoration Based on Diffusion Model}, 
      author={Dian Zheng and Xiao-Ming Wu and Shuzhou Yang and Jian Zhang and Jian-Fang Hu and Wei-Shi Zheng},
      year={2024},
      eprint={2403.11157},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2403.11157}, 
}