DiffPop: Plausibility-Guided Object Placement Diffusion for Image Composition

Jiacheng Liu, Hang Zhou, Shida Wei, Rui Ma · DOI

Introduction

Image composition—the process of inserting a foreground object into a background scene—is a fundamental task in computer vision and graphic design. A critical component of this process is object placement, which involves determining the appropriate scale and 2D coordinates for the new object. If the placement is incorrect, the resulting image lacks realism; a car might appear to float, or a person might be scaled disproportionately to their surroundings.

The Limitations of Existing Approaches

Traditional methods for object placement have largely relied on Generative Adversarial Networks (GANs). While GANs can produce high-quality images, they often suffer from "mode collapse," where the model learns a limited set of "safe" placements and fails to capture the full diversity of realistic possibilities. Furthermore, training these models effectively requires "negative" examples (implausible placements), which are rarely present in standard datasets.

The DiffPop Framework

To address these challenges, the authors propose DiffPop, a framework that leverages Denoising Diffusion Probabilistic Models (DDPMs) guided by a human-in-the-loop plausibility classifier. The framework operates through a two-stage process:

1. Unguided Diffusion

The model is first trained in a self-supervised manner to learn the raw distribution of object scales and locations from real-world data. This allows the model to understand the general relationship between objects and scenes without specific contextual constraints.

2. Plausibility Guidance

To refine the model's "common sense," the researchers introduced a guidance mechanism:

  • Human-in-the-Loop Labeling: The unguided model generates thousands of composite images, which are then labeled by humans as "positive" (plausible) or "negative" (implausible).
  • Structural Plausibility Classifier ($C_s$): A ResNet-18-based classifier is trained on this labeled data. Crucially, the classifier operates on binarized semantic layouts (masks) rather than raw RGB pixels, allowing it to focus on the structural "bones" of the scene.
  • Guided Sampling: During inference, the gradient of the classifier is used to nudge the diffusion process at each step, steering the generation toward placements that are structurally coherent.

For scenarios involving multiple objects, the authors also developed a Relational Plausibility Classifier ($C_r$) to ensure that objects do not overlap and maintain spatial consistency relative to one another.

Benchmarking and Datasets

The performance of DiffPop was evaluated on two primary benchmarks:

  • OPA (Object Placement Assessment): A public dataset with over 62,000 images and rationality labels.
  • Cityscapes-OP: A new benchmark introduced by the authors, based on the Cityscapes street-scene dataset. It contains 12,000 human-annotated composite images designed to test structural coherence in complex urban environments.

Key Insights

  • Diversity through Diffusion: Unlike GANs, diffusion models explore the entire probability space, allowing DiffPop to generate a wider variety of valid placements, such as placing objects in the far background or foreground with appropriate scaling.
  • Efficiency of Weak Supervision: The study demonstrates that simple binary human feedback is sufficient to train a powerful guidance model, bypassing the need for perfectly curated "ideal" placement datasets.
  • Layout-Centric Learning: By focusing on semantic layouts, the plausibility classifier avoids being distracted by textures or lighting, leading to more robust spatial reasoning.

Results and Impact

DiffPop demonstrated significant improvements over state-of-the-art baselines like GracoNet and SAC-GAN:

  • Realism: In user studies, DiffPop's placements were consistently rated as more natural.
  • Quantitative Performance: On the Cityscapes-OP dataset, DiffPop achieved a Fréchet Inception Distance (FID) of 18.20, a substantial improvement over SAC-GAN’s 29.98.
  • Data Augmentation: The researchers showed that using DiffPop to generate synthetic training data for semantic segmentation models (e.g., PSPNet) improved the performance of those models on real-world tasks.

Limitations and Future Directions

Despite its success, DiffPop has areas for improvement. The model currently struggles with perspective mismatch, where the camera angle of the foreground object does not match the background. Additionally, while the model understands spatial logic, it does not yet account for semantic or legal logic (e.g., ensuring a car is facing the correct direction on a one-way street). Future work will focus on integrating placement logic with image harmonization to create a seamless, end-to-end composition pipeline.

Summary updated

BibTeX
@article{liu2024diffpop,
  author = {Jiacheng Liu and Hang Zhou and Shida Wei and Rui Ma},
  title = {{DiffPop: Plausibility-Guided Object Placement Diffusion for Image Composition}},
  journal = {Computer Graphics Forum},
  year = {2024},
  doi = {10.1111/cgf.15246},
}
Figure