Context Diffusion: In-Context Aware Image Generation

Ivona Najdenkoska, Animesh Sinha, Abhimanyu Dubey, Dhruv Mahajan, Vignesh Ramanathan +1 more
12/6/2023
cs.CV

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

We propose Context Diffusion, a diffusion-based framework that enables image generation models to learn from visual examples presented in context. Recent work tackles such in-context learning for image generation, where a query image is provided alongside context examples and text prompts. However, the quality and context fidelity of the generated images deteriorate when the prompt is not present, demonstrating that these models cannot truly learn from the visual context. To address this, we propose a novel framework that separates the encoding of the visual context and the preservation of the desired image layout. This results in the ability to learn from the visual context and prompts, but also from either of them. Furthermore, we enable our model to handle few-shot settings, to effectively address diverse in-context learning scenarios. Our experiments and human evaluation demonstrate that Context Diffusion excels in both in-domain and out-of-domain tasks, resulting in an overall enhancement in image quality and context fidelity compared to counterpart models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{najdenkoska2023context,
  title  = {Context Diffusion: In-Context Aware Image Generation},
  author = {Ivona Najdenkoska and Animesh Sinha and Abhimanyu Dubey and Dhruv Mahajan and Vignesh Ramanathan and Filip Radenovic},
  year   = {2023},
  eprint = {2312.03584},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.03584v2}
}

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

Discussion