CoDi: Conditional Diffusion Distillation for Higher-Fidelity and Faster Image Generation

Kangfu Mei, M. Delbracio, Hossein Talebi, Zhengzhong Tu, Vishal M. Patel +1 more
10/1/2023

No official code found. Best implementation: fast-codi/CoDi (101 stars, last commit 2024-03-02).

Abstract

Large generative diffusion models have revolution-ized text-to-image generation and offer immense po-tential for conditional generation tasks such as im-age enhancement, restoration, editing, and compositing. However, their widespread adoption is hindered by the high computational cost, which limits their real-time application. To address this challenge, we in-troduce a novel method dubbed CoDi, that adapts a pre-trained latent diffusion model to accept additional image conditioning inputs while significantly reducing the sampling steps required to achieve high-quality results. Our method can leverage architectures such as ControlNet to incorporate conditioning inputs with-out compromising the model's prior knowledge gained during large scale pre-training. Additionally, a con-ditional consistency loss enforces consistent predictions across diffusion steps, effectively compelling the model to generate high-quality images with conditions in a few steps. Our conditional-task learning and distil-lation approach outperforms previous distillation meth-ods, achieving a new state-of-the-art in producing high-quality images with very few steps (e.g., 1–4) across multiple tasks, including super-resolution, text-guided image editing, and depth-to-image generation.

View on arXivView PDF

Code Implementations(1)

fast-codi/CoDiCommunity100%

[CVPR24] CoDi: Conditional Diffusion Distillation for Higher-Fidelity and Faster Image Generation

1012Python, Jupyter NotebookFeb 14, 20242 years ago
cvpr2024

Similar Papers

Cite this paper

@article{mei2023codi,
  title  = {CoDi: Conditional Diffusion Distillation for Higher-Fidelity and Faster Image Generation},
  author = {Kangfu Mei and M. Delbracio and Hossein Talebi and Zhengzhong Tu and Vishal M. Patel and P. Milanfar},
  year   = {2023},
  eprint = {2310.01407},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2310.01407},
  journal = {CVPR 2023 2023}
}

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

Discussion