Text-Guided Synthesis of Artistic Images with Retrieval-Augmented Diffusion Models

Robin Rombach, Andreas Blattmann, Björn Ommer
7/26/2022
103 citations
cs.CV
diffusion-flowrag

Official code: CompVis/latent-diffusion (14,186 stars, Jupyter Notebook, MIT, last commit 2024-02-29).

Abstract

Novel architectures have recently improved generative image synthesis leading to excellent visual quality in various tasks. Of particular note is the field of ``AI-Art'', which has seen unprecedented growth with the emergence of powerful multimodal models such as CLIP.

Show full abstract

By combining speech and image synthesis models, so-called ``prompt-engineering'' has become established, in which carefully selected and composed sentences are used to achieve a certain visual style in the synthesized image. In this note, we present an alternative approach based on retrieval-augmented diffusion models (RDMs). In RDMs, a set of nearest neighbors is retrieved from an external database during training for each training instance, and the diffusion model is conditioned on these informative samples. During inference (sampling), we replace the retrieval database with a more specialized database that contains, for example, only images of a particular visual style. This provides a novel way to prompt a general trained model after training and thereby specify a particular visual style. As shown by our experiments, this approach is superior to specifying the visual style within the text prompt. We open-source code and model weights at https://github.com/CompVis/latent-diffusion .

View on arXivView PDF

Code Implementations(1)

MIT

High-Resolution Image Synthesis with Latent Diffusion Models

14,1861,729Jupyter Notebook, PythonDec 20, 20212 years agoMIT

Similar Papers

Cite this paper

@article{rombach2022textguided,
  title  = {Text-Guided Synthesis of Artistic Images with Retrieval-Augmented Diffusion Models},
  author = {Robin Rombach and Andreas Blattmann and Björn Ommer},
  year   = {2022},
  eprint = {2207.13038},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.13038v1}
}

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

Discussion