Home

Awesome

<p align="center"> <img src="./Figs/MoE-DiffIR.png" alt="image" style="width:1000px;"> </p>

arXiv Project visitors

This repository is the official PyTorch implementation of MoE-DiffIR (ECCV 2024).

:bookmark: News!!!

We present MoE-DiffIR, an innovative universal compressed image restoration (CIR) method with task-customized diffusion priors. This intends to handle two pivotal challenges in the existing CIR methods: (i) lacking adaptability and universality for different image codecs, e.g., JPEG and WebP; (ii) poor texture generation capability, particularly at low bitrates. Specifically, our MoE-DiffIR develops the powerful mixture-of-experts (MoE) prompt module, where some basic prompts cooperate to excavate the task-customized diffusion priors from Stable Diffusion (SD) for each compression task. Moreover, the degradation-aware routing mechanism is proposed to enable the flexible assignment of basic prompts. To activate and reuse the cross-modality generation prior of SD, we design the visual-to-text adapter for MoE-DiffIR, which aims to adapt the embedding of low-quality images from the visual domain to the textual domain as the textual guidance for SD, enabling more consistent and reasonable texture generation. We also construct one comprehensive benchmark dataset for universal CIR, covering 21 types of degradations from 7 popular traditional and learned codecs. Extensive experiments on universal CIR have demonstrated the excellent robustness and texture restoration capability of our proposed MoE-DiffIR.

<p align="center"> <img width="800" src="./Figs/Overview.png"> </p>

:sparkles: Getting Start

Results

<p align="center"> <img width="800" src="./Figs/Visual1.png"> </p> <p align="center"> <img width="800" src="./Figs/Visual2.png"> </p>

Cite US

Please cite us if this work is helpful to you.

@article{ren2024moe,
  title={MoE-DiffIR: Task-customized Diffusion Priors for Universal Compressed Image Restoration},
  author={Ren, Yulin and Li, Xin and Li, Bingchen and Wang, Xingrui and Guo, Mengxi and Zhao, Shijie and Zhang, Li and Chen, Zhibo},
  journal={arXiv preprint arXiv:2407.10833},
  year={2024}
}

Acknowledgments

The basic code is partially from the below repos.