Test-time Controllable Image Generation by Explicit Spatial Constraint Enforcement
Z. ZhangBLB. LiuJ. BaoL. ChenS. ZhuJ. Yu
Z. Zhang
BLB. Liu
J. Bao
L. Chen
S. Zhu
J. Yu
+6
This work introduces a test-time controllable image generation method that enforces spatial constraints, such as masks and bounding boxes, without requiring model fine-tuning. It decouples each spatial condition into semantic and geometric components. For the semantic component, the method bridges gaps between the condition, text prompt, and attention maps by completing the prompt and reducing distracting word influence. For the geometric component, a transform module identifies regions of interest in attention maps and translates category-wise latents accordingly, while a diffusion-based refill method removes artifacts. Experiments on COCO-Stuff show a 30% relative improvement over training-free methods in layout consistency.

arXiv ·
· January 2, 2025