All models

SnowFormer

A transformer that removes snow from a single image using cross-attention between snow queries and local patches.

2,730 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

This diagram has 2,730 operations (91 KB) and is drawn when you ask.

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
8.4M
Operations
2,730
Framework
PyTorch
Recurrent
No
Published
2022
Cited by
100 (as of 25 November 2026)
Authors
Sixiang Chen, Tian Ye, Yun Liu, Erkang Chen
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
m20477
Graph hash
880405560e174a6fb10d0566e4526b008f35454bd99145d44419d9c538eb8eb3
Skeleton hash
11fc021c2f809fa6ef0a7ed4c047faa0884b52eeb3ac8c6d52d0e889da5e8bb8
Architecture hash
5352c4a3ef342ee21234e9ae7e9d2b9ca72d26c5d1a477d6d902e6a803f2c2a6
Diagram SHA-256
44464a860c2220315641b14839a5b479f25e67b25bcb4242292a6603e43403d4
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

SnowFormer is a transformer that removes snow from a single image. The paper starts from the observation that snow degradations are non-uniform, more irregular and more varied in size than rain streaks, so the authors argue that removing them calls for careful design.

Where recent image restoration Vision Transformers rely on multi-head self-attention, SnowFormer uses multi-head cross-attention between scale-aware snow queries and local-patch embeddings. The snow queries come from a query generator that works on aggregated scale-aware features. Those features are built by applying max pooling and a 1×1 convolution at each level of the encoder and aggregating the results. In the decoder, a Local Interaction module performs self-attention across the pixels of each local patch. An Attention Refinement Head, driven by degradation-aware position encoding, then handles residual snow degradations progressively.

The paper reports results above earlier desnowing networks and universal image restoration transformers on six synthetic and real-world datasets, including PSNR gains of 2.86dB on SRRS and 2.36dB on Snow100K. The code repository provides a pre-trained model for the CSD dataset.

Key idea. SnowFormer restores snowy images with cross-attention between local-patch embeddings and scale-aware snow queries generated from aggregated scale-aware features.

  • SnowFormer
  • desnowing
  • snow removal
  • single image desnowing
  • image restoration
  • context interaction transformer
  • scale-aware
  • snow queries

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

Cite the paper

@misc{chen2022snowformercontextinteractiontransformer,
      title={SnowFormer: Context Interaction Transformer with Scale-awareness for Single Image Desnowing}, 
      author={Sixiang Chen and Tian Ye and Yun Liu and Erkang Chen},
      year={2022},
      eprint={2208.09703},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2208.09703}, 
}