SketchFlex: Facilitating Spatial-Semantic Coherence in Text-to-Image Generation with Region-Based Sketches

Haichuan Lin, Yilin Ye, Jiazhi Xia, Wei Zeng
2/11/2025
cs.HCcs.CV

No official code found. Best implementation: SellLin/SketchFlex (7 stars, Apache-2.0, last commit 2025-02-12).

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.

View on arXivView PDF

Code Implementations(1)

SellLin/SketchFlexCommunity100%
Apache-2.0
71CSS, VueJan 24, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{lin2025sketchflex,
  title  = {SketchFlex: Facilitating Spatial-Semantic Coherence in Text-to-Image Generation with Region-Based Sketches},
  author = {Haichuan Lin and Yilin Ye and Jiazhi Xia and Wei Zeng},
  year   = {2025},
  eprint = {2502.07556},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.07556v1}
}

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

Discussion