zhengchen1999 / BI-DiffSR

PyTorch code for our paper "Binarized Diffusion Model for Image Super-Resolution"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Binarized Diffusion Model for Image Super-Resolution

Zheng Chen, Haotong Qin, Yong Guo, Xiongfei Su, Xin Yuan, Linghe Kong, and Yulun Zhang, "Binarized Diffusion Model for Image Super-Resolution", arXiv, 2024

[arXiv] [visual results] [pretrained models]

🔥🔥🔥 News

  • 2024-06-09: This repo is released.

Abstract: Advanced diffusion models (DMs) perform impressively in image super-resolution (SR), but the high memory and computational costs hinder their deployment. Binarization, an ultra-compression algorithm, offers the potential for effectively accelerating DMs. Nonetheless, due to the model structure and the multi-step iterative attribute of DMs, existing binarization methods result in significant performance degradation. In this paper, we introduce a novel binarized diffusion model, BI-DiffSR, for image SR. First, for the model structure, we design a UNet architecture optimized for binarization. We propose the consistent-pixel-downsample (CP-Down) and consistent-pixel-upsample (CP-Up) to maintain dimension consistent and facilitate the full-precision information transfer. Meanwhile, we design the channel-shuffle-fusion (CS-Fusion) to enhance feature fusion in skip connection. Second, for the activation difference across timestep, we design the timestep-aware redistribution (TaR) and activation function (TaA). The TaR and TaA dynamically adjust the distribution of activations based on different timesteps, improving the flexibility and representation alability of the binarized module. Comprehensive experiments demonstrate that our BI-DiffSR outperforms existing binarization methods.



HR LR SR3 (FP) BBCU BI-DiffSR (ours)

TODO

  • Release code and pretrained models

Contents

  1. Datasets
  2. Models
  3. Training
  4. Testing
  5. Results
  6. Citation
  7. Acknowledgements

Results

We achieved state-of-the-art performance. Detailed results can be found in the paper.

Quantitative Comparisons (click to expand)
  • Results in Table 2 (main paper)

Visual Comparisons (click to expand)
  • Results in Figure 8 (main paper)

  • Results in Figure 13 (supplemental material)

  • Results in Figure 14 (supplemental material)

Citation

If you find the code helpful in your research or work, please cite the following paper(s).

@article{chen2024binarized,
    title={Binarized Diffusion Model for Image Super-Resolution},
    author={Chen, Zheng and Qin, Haotong and Guo, Yong and Su, Xiongfei and Yuan, Xin and Kong, Linghe and Zhang, Yulun},
    journal={arXiv preprint arXiv:2406.05723},
    year={2024}
}

Acknowledgements

This code is built on BasicSR, Image-Super-Resolution-via-Iterative-Refinement.

About

PyTorch code for our paper "Binarized Diffusion Model for Image Super-Resolution"