HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

FastComposer: Tuning-Free Multi-Subject Image Generation with Localized Attention

Xiao Guangxuan ; Yin Tianwei ; Freeman William T. ; Durand Frédo ; Han Song

FastComposer: Tuning-Free Multi-Subject Image Generation with Localized
  Attention

Abstract

Diffusion models excel at text-to-image generation, especially insubject-driven generation for personalized images. However, existing methodsare inefficient due to the subject-specific fine-tuning, which iscomputationally intensive and hampers efficient deployment. Moreover, existingmethods struggle with multi-subject generation as they often blend featuresamong subjects. We present FastComposer which enables efficient, personalized,multi-subject text-to-image generation without fine-tuning. FastComposer usessubject embeddings extracted by an image encoder to augment the generic textconditioning in diffusion models, enabling personalized image generation basedon subject images and textual instructions with only forward passes. To addressthe identity blending problem in the multi-subject generation, FastComposerproposes cross-attention localization supervision during training, enforcingthe attention of reference subjects localized to the correct regions in thetarget images. Naively conditioning on subject embeddings results in subjectoverfitting. FastComposer proposes delayed subject conditioning in thedenoising step to maintain both identity and editability in subject-drivenimage generation. FastComposer generates images of multiple unseen individualswith different styles, actions, and contexts. It achieves300$\times$-2500$\times$ speedup compared to fine-tuning-based methods andrequires zero extra storage for new subjects. FastComposer paves the way forefficient, personalized, and high-quality multi-subject image creation. Code,model, and dataset are available athttps://github.com/mit-han-lab/fastcomposer.

Code Repositories

Benchmarks

BenchmarkMethodologyMetrics
diffusion-personalization-tuning-free-onFastComposer
Cosine Similarity: 0.256
FID: 31.736
LPIPS: 0.487

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp