Training-Free Layout Control with Cross-Attention Guidance

被引:28
作者
Chen, Minghao [1 ]
Laina, Iro [1 ]
Vedaldi, Andrea [1 ]
机构
[1] Univ Oxford, Visual Geometry Grp, Oxford, England
来源
2024 IEEE/CVF WINTER CONFERENCE ON APPLICATIONS OF COMPUTER VISION, WACV 2024 | 2024年
关键词
IMAGE GENERATION;
D O I
10.1109/WACV57701.2024.00526
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Recent diffusion-based generators can produce high-quality images from textual prompts. However, they often disregard textual instructions that specify the spatial layout of the composition. We propose a simple approach that achieves robust layout control without the need for training or fine-tuning of the image generator. Our technique manipulates the cross-attention layers that the model uses to interface textual and visual information and steers the generation in the desired direction given, e.g., a user-specified layout. To determine how to best guide attention, we study the role of attention maps and explore two alternative strategies, forward and backward guidance. We thoroughly evaluate our approach on three benchmarks and provide several qualitative examples and a comparative analysis of the two strategies that demonstrate the superiority of backward guidance compared to forward guidance, as well as prior work. We further demonstrate the versatility of layout guidance by extending it to applications such as editing the layout and context of real images.
引用
收藏
页码:5331 / 5341
页数:11
相关论文
共 58 条
[1]  
[Anonymous], 2021, PMLR
[2]  
[Anonymous], 2016, PMLR
[3]   SpaText: Spatio-Textual Representation for Controllable Image Generation [J].
Avrahami, Omri ;
Hayes, Thomas ;
Gafni, Oran ;
Gupta, Sonal ;
Taigman, Yaniv ;
Parikh, Devi ;
Lischinski, Dani ;
Fried, Ohad ;
Yin, Xi .
2023 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2023, :18370-18380
[4]  
Balaji Y., 2022, arXiv
[5]  
Bansal A., 2023, ARXIV
[6]  
Bar-Tal Omer, 2023, arXiv
[7]   Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Models [J].
Chefer, Hila ;
Alaluf, Yuval ;
Vinker, Yael ;
Wolf, Lior ;
Cohen-Or, Daniel .
ACM TRANSACTIONS ON GRAPHICS, 2023, 42 (04)
[8]  
Chen, 2022, ARXIV
[9]  
Cord M., 2022, arXiv
[10]  
Couairon Guillaume, 2023, ARXIV