Skip to main content
QUICK REVIEW

[Paper Review] Generate Anything Anywhere in Any Scene

Yuheng Li, Haotian Liu|arXiv (Cornell University)|Jun 29, 2023
Generative Adversarial Networks and Image SynthesisComputer Science4 citations
TL;DR

PACGen introduces a novel text-to-image diffusion model that achieves both high-fidelity personalized object generation and precise localization control by disentangling object identity from spatial attributes through data augmentation during fine-tuning. By integrating GLIGEN's adapter layers at inference and employing regionally-guided sampling, PACGen enables users to generate personalized objects at any desired location and size in diverse scenes with superior image quality and controllability compared to existing methods.

ABSTRACT

Text-to-image diffusion models have attracted considerable interest due to their wide applicability across diverse fields. However, challenges persist in creating controllable models for personalized object generation. In this paper, we first identify the entanglement issues in existing personalized generative models, and then propose a straightforward and efficient data augmentation training strategy that guides the diffusion model to focus solely on object identity. By inserting the plug-and-play adapter layers from a pre-trained controllable diffusion model, our model obtains the ability to control the location and size of each generated personalized object. During inference, we propose a regionally-guided sampling technique to maintain the quality and fidelity of the generated images. Our method achieves comparable or superior fidelity for personalized objects, yielding a robust, versatile, and controllable text-to-image diffusion model that is capable of generating realistic and personalized images. Our approach demonstrates significant potential for various applications, such as those in art, entertainment, and advertising design.

Motivation & Objective

  • To address the entanglement of object identity with location and size in personalized text-to-image diffusion models.
  • To enable fine-grained control over the position and scale of personalized objects in generated scenes.
  • To maintain high image fidelity while achieving both personalization and localization controllability.
  • To develop a method that requires no additional fine-tuning for localization after personalization.
  • To mitigate artifacts such as collaging effects introduced by data augmentation during training.

Proposed method

  • Apply random resizing and repositioning of user-provided images during DreamBooth-style fine-tuning to disentangle object identity from spatial attributes.
  • Integrate pre-trained GLIGEN adapter layers into the fine-tuned diffusion model at inference time to enable location and size control.
  • Use a regionally-guided sampling strategy with three specialized prompts: a negative prompt, a diversity prompt, and a suppression prompt.
  • Leverage classifier-free guidance with a scale of 5 and schedule sampling (τ = 0.3) to balance image quality and layout accuracy.
  • Train a collaging classifier using CLIP features to quantitatively evaluate and ablate artifact introduction from data augmentation.
  • Fine-tune Stable Diffusion v1.4 with a batch size of 2 for 1000 iterations, using a random resizing scalar s = 0.3.

Experimental results

Research questions

  • RQ1Can data augmentation during fine-tuning effectively disentangle object identity from spatial attributes in personalized diffusion models?
  • RQ2To what extent does the integration of GLIGEN adapters enable localization control without retraining?
  • RQ3How does regionally-guided sampling improve image quality and reduce artifacts like collaging effects?
  • RQ4What is the impact of multi-concept personalization on attribute consistency and generation fidelity?
  • RQ5How do the individual components of the regionally-guided sampling prompts contribute to overall performance?

Key findings

  • The proposed data augmentation strategy reduces LPIPS distance between generated images from 0.6583 to 0.5489, indicating improved consistency and reduced diversity due to disentanglement.
  • Ablation studies confirm that removing any of the three regionally-guided prompts leads to significant artifacts: absence of the negative prompt causes collaging effects, especially for small objects.
  • Without the suppression prompt, the model generates unwanted duplicate instances in incorrect locations, demonstrating its role in maintaining layout fidelity.
  • Qualitative results show that PACGen successfully positions personalized objects in arbitrary locations with high fidelity, even in complex scenes.
  • The model enables diverse applications such as multi-object composition, art style transfer, and attribute editing while preserving localization control.
  • Inference time increases from 5 to 8 seconds per image on an A6000 GPU due to additional prompts, but this is offset by the model’s robustness and controllability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.