Sketch-Guided Scene Image Generation
Tianyu Zhang, Xiaoxuan Xie, Xusheng Du, Haoran Xie
TL;DR
The paper tackles the challenge of generating coherent scene images from hand-drawn sketches using diffusion models. It introduces a two-stage approach that first performs object-level cross-domain generation with ControlNet and identity embeddings to preserve object details, then constructs the scene at the latent level by separately generating the background and blending foregrounds using a global prompt with learned identity tokens. A masked diffusion loss enforces faithful reconstruction of object concepts, while a blended latent diffusion scheme and an alpha-balanced inference enable natural fusion of foreground and background. Quantitative and user studies show the method surpasses state-of-the-art sketch-guided diffusion models in object fidelity and sketch-image consistency. This work advances sketch-driven scene synthesis, offering a practical pathway for layout-consistent, detail-rich image generation from freehand sketches.
Abstract
Text-to-image models are showcasing the impressive ability to create high-quality and diverse generative images. Nevertheless, the transition from freehand sketches to complex scene images remains challenging using diffusion models. In this study, we propose a novel sketch-guided scene image generation framework, decomposing the task of scene image scene generation from sketch inputs into object-level cross-domain generation and scene-level image construction. We employ pre-trained diffusion models to convert each single object drawing into an image of the object, inferring additional details while maintaining the sparse sketch structure. In order to maintain the conceptual fidelity of the foreground during scene generation, we invert the visual features of object images into identity embeddings for scene generation. In scene-level image construction, we generate the latent representation of the scene image using the separated background prompts, and then blend the generated foreground objects according to the layout of the sketch input. To ensure the foreground objects' details remain unchanged while naturally composing the scene image, we infer the scene image on the blended latent representation using a global prompt that includes the trained identity tokens. Through qualitative and quantitative experiments, we demonstrate the ability of the proposed approach to generate scene images from hand-drawn sketches surpasses the state-of-the-art approaches.
