Training-free Subject-Enhanced Attention Guidance for Compositional Text-to-image Generation

Shengyuan Liu, Bo Wang, Ye Ma, Te Yang, Xipeng Cao +4 more
5/11/2024
cs.CV

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

Existing subject-driven text-to-image generation models suffer from tedious fine-tuning steps and struggle to maintain both text-image alignment and subject fidelity. For generating compositional subjects, it often encounters problems such as object missing and attribute mixing, where some subjects in the input prompt are not generated or their attributes are incorrectly combined. To address these limitations, we propose a subject-driven generation framework and introduce training-free guidance to intervene in the generative process during inference time. This approach strengthens the attention map, allowing for precise attribute binding and feature injection for each subject. Notably, our method exhibits exceptional zero-shot generation ability, especially in the challenging task of compositional generation. Furthermore, we propose a novel metric GroundingScore to evaluate subject alignment thoroughly. The obtained quantitative results serve as compelling evidence showcasing the effectiveness of our proposed method. The code will be released soon.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2024trainingfree,
  title  = {Training-free Subject-Enhanced Attention Guidance for Compositional Text-to-image Generation},
  author = {Shengyuan Liu and Bo Wang and Ye Ma and Te Yang and Xipeng Cao and Quan Chen and Han Li and Di Dong and Peng Jiang},
  year   = {2024},
  eprint = {2405.06948},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.06948v1}
}

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

Discussion