Towards an Effective and Efficient Transformer for Rain-by-snow Weather Removal

Tao Gao, Yuanbo Wen, Kaihao Zhang, Peng Cheng, Ting Chen
4/6/2023
7 citations
cs.CV
transformer-attention

No official code found. Best implementation: chdwyb/Rain-by-snow (21 stars, Python, last commit 2025-03-30).

Abstract

Rain-by-snow weather removal is a specialized task in weather-degraded image restoration aiming to eliminate coexisting rain streaks and snow particles. In this paper, we propose RSFormer, an efficient and effective Transformer that addresses this challenge.

Show full abstract

Initially, we explore the proximity of convolution networks (ConvNets) and vision Transformers (ViTs) in hierarchical architectures and experimentally find they perform approximately at intra-stage feature learning. On this basis, we utilize a Transformer-like convolution block (TCB) that replaces the computationally expensive self-attention while preserving attention characteristics for adapting to input content. We also demonstrate that cross-stage progression is critical for performance improvement, and propose a global-local self-attention sampling mechanism (GLASM) that down-/up-samples features while capturing both global and local dependencies. Finally, we synthesize two novel rain-by-snow datasets, RSCityScape and RS100K, to evaluate our proposed RSFormer. Extensive experiments verify that RSFormer achieves the best trade-off between performance and time-consumption compared to other restoration methods. For instance, it outperforms Restormer with a 1.53% reduction in the number of parameters and a 15.6% reduction in inference time. Datasets, source code and pre-trained models are available at \url{https://github.com/chdwyb/RSFormer}.

View on arXivView PDF

Code Implementations(1)

chdwyb/Rain-by-snowCommunity100%

Restoring Vision in Rain-by-snow Weather with Simple Attention-based Sampling Cross-hierarchy Transformer

211PythonMar 28, 20231 years ago

Similar Papers

Cite this paper

@article{gao2023towards,
  title  = {Towards an Effective and Efficient Transformer for Rain-by-snow Weather Removal},
  author = {Tao Gao and Yuanbo Wen and Kaihao Zhang and Peng Cheng and Ting Chen},
  year   = {2023},
  eprint = {2304.02860},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.02860v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.02860.svg)](https://codeofpaper.com/paper/2304.02860)

Discussion