Learning A Coarse-to-Fine Diffusion Transformer for Image Restoration

Liyan Wang, Qinyu Yang, Cong Wang, Wei Wang, Jinshan Pan +1 more
8/17/2023
12 citations
cs.CV
diffusion-flowtransformer-attention

Official code: wlydlut/C2F-DFT (44 stars, Python, last commit 2024-08-20).

Abstract

Recent years have witnessed the remarkable performance of diffusion models in various vision tasks. However, for image restoration that aims to recover clear images with sharper details from given degraded observations, diffusion-based methods may fail to recover promising results due to inaccurate noise estimation.

Show full abstract

Moreover, simple constraining noises cannot effectively learn complex degradation information, which subsequently hinders the model capacity. To solve the above problems, we propose a coarse-to-fine diffusion Transformer (C2F-DFT) for image restoration. Specifically, our C2F-DFT contains diffusion self-attention (DFSA) and diffusion feed-forward network (DFN) within a new coarse-to-fine training scheme. The DFSA and DFN respectively capture the long-range diffusion dependencies and learn hierarchy diffusion representation to facilitate better restoration. In the coarse training stage, our C2F-DFT estimates noises and then generates the final clean image by a sampling algorithm. To further improve the restoration quality, we propose a simple yet effective fine training scheme. It first exploits the coarse-trained diffusion model with fixed steps to generate restoration results, which then would be constrained with corresponding ground-truth ones to optimize the models to remedy the unsatisfactory results affected by inaccurate noise estimation. Extensive experiments show that C2F-DFT significantly outperforms diffusion-based restoration method IR-SDE and achieves competitive performance compared with Transformer-based state-of-the-art methods on $3$ tasks, including image deraining, image deblurring, and real image denoising. Code is available at https://github.com/wlydlut/C2F-DFT.

View on arXivView PDF

Code Implementations(1)

wlydlut/C2F-DFTOfficial100%

[CVIU 2024] Coarse-to-Fine Mechanisms Mitigate Diffusion Limitations on Image Restoration

449Python, MATLABMay 11, 20232 years ago

Similar Papers

Cite this paper

@article{wang2023learning,
  title  = {Learning A Coarse-to-Fine Diffusion Transformer for Image Restoration},
  author = {Liyan Wang and Qinyu Yang and Cong Wang and Wei Wang and Jinshan Pan and Zhixun Su},
  year   = {2023},
  eprint = {2308.08730},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.08730v4}
}

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/2308.08730.svg)](https://codeofpaper.com/paper/2308.08730)

Discussion