Training-free Regional Prompting for Diffusion Transformers

Anthony Chen, Jianjin Xu, Wenzhao Zheng, Gaole Dai, Yida Wang +3 more
11/4/2024
cs.CV

No official code found. Best implementation: instantX-research/Regional-Prompting-FLUX (698 stars, last commit 2024-11-28). 1 more below.

Abstract

Diffusion models have demonstrated excellent capabilities in text-to-image generation. Their semantic understanding (i.e., prompt following) ability has also been greatly improved with large language models (e.g., T5, Llama). However, existing models cannot perfectly handle long and complex text prompts, especially when the text prompts contain various objects with numerous attributes and interrelated spatial relationships. While many regional prompting methods have been proposed for UNet-based models (SD1.5, SDXL), but there are still no implementations based on the recent Diffusion Transformer (DiT) architecture, such as SD3 and FLUX.1.In this report, we propose and implement regional prompting for FLUX.1 based on attention manipulation, which enables DiT with fined-grained compositional text-to-image generation capability in a training-free manner. Code is available at https://github.com/antonioo-c/Regional-Prompting-FLUX.

View on arXivView PDF

Code Implementations(2)

Training-free Regional Prompting for Diffusion Transformers 🔥

69830PythonOct 31, 20241 years ago
MIT

SD3.5 Fork for Training-free Regional Prompting for Diffusion Transformers 🔥

00PythonNov 6, 20241 years agoMIT

Similar Papers

Cite this paper

@article{chen2024trainingfree,
  title  = {Training-free Regional Prompting for Diffusion Transformers},
  author = {Anthony Chen and Jianjin Xu and Wenzhao Zheng and Gaole Dai and Yida Wang and Renrui Zhang and Haofan Wang and Shanghang Zhang},
  year   = {2024},
  eprint = {2411.02395},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.02395v1}
}

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

Discussion