SketchFlex: Facilitating Spatial-Semantic Coherence in Text-to-Image Generation with Region-Based Sketches
Haichuan Lin, Yilin Ye, Jiazhi Xia, Wei Zeng
TL;DR
SketchFlex tackles the challenge that non-experts face when steering text-to-image generation with precise spatial and semantic constraints. It combines sketch-based region inputs with automated prompt tuning via a semantic space and multimodal prompting, then refines rough sketches through a decompose-and-recompose workflow that isolates and aligns individual object shapes before anchoring them with shape-aware conditioning. The system demonstrates improved semantic coherence and spatial fidelity over end-to-end and region-based baselines, while reducing cognitive load for novices. These contributions enable more accessible, flexible, and user-intent–driven image generation with potential impact on design, art, and asset creation. The work also discusses limitations, ethical considerations, and directions for integrating more models and progressive sketching paradigms.
Abstract
Text-to-image models can generate visually appealing images from text descriptions. Efforts have been devoted to improving model controls with prompt tuning and spatial conditioning. However, our formative study highlights the challenges for non-expert users in crafting appropriate prompts and specifying fine-grained spatial conditions (e.g., depth or canny references) to generate semantically cohesive images, especially when multiple objects are involved. In response, we introduce SketchFlex, an interactive system designed to improve the flexibility of spatially conditioned image generation using rough region sketches. The system automatically infers user prompts with rational descriptions within a semantic space enriched by crowd-sourced object attributes and relationships. Additionally, SketchFlex refines users' rough sketches into canny-based shape anchors, ensuring the generation quality and alignment of user intentions. Experimental results demonstrate that SketchFlex achieves more cohesive image generations than end-to-end models, meanwhile significantly reducing cognitive load and better matching user intentions compared to region-based generation baseline.
