TensorX
返回文献探索

Paper · arXiv 2312.03584

Context Diffusion: In-Context Aware Image Generation

Ivona Najdenkoska, Animesh Sinha, Abhimanyu Dubey, Dhruv Mahajan, Vignesh Ramanathan, Filip Radenovic

15 upvotesDecember 6, 2023arXiv 预印本
AI 摘要

Context Diffusion enhances in-context image generation by separately encoding visual context and preserving query image structure, improving quality and fidelity across different scenarios.

diffusion-based frameworkvisual contextquery imagesin-context learningfew-shot settingsimage qualityimage fidelity

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 fidelity of the generated images deteriorate when the prompt is not present, demonstrating that these models are unable to truly learn from the visual context. To address this, we propose a novel framework that separates the encoding of the visual context and preserving the structure of the query images. This results in the ability to learn from the visual context and text prompts, but also from either one of them. Furthermore, we enable our model to handle few-shot settings, to effectively address diverse in-context learning scenarios. Our experiments and user study demonstrate that Context Diffusion excels in both in-domain and out-of-domain tasks, resulting in an overall enhancement in image quality and fidelity compared to counterpart models.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
Context Diffusion: In-Context Aware Image Generation | TensorX