Object Placement for Anything

Bingjie Gao, Bo Zhang, Li Niu · DOI

Abstract

Achieving realistic image composition requires precise object placement, ensuring that foreground elements are positioned and scaled rationally within a background. Current models are often limited by the scarcity of labeled datasets, leading to poor generalization across diverse object categories. This paper presents a novel semi-supervised framework that leverages massive unlabeled datasets through a "similarity transfer" mechanism. By learning how variations in position and scale affect the plausibility of a composite image, the model generalizes effectively to unseen categories. Our approach achieves state-of-the-art performance on the OPA benchmark and significantly improves F1-scores on out-of-distribution data.

Introduction

In the field of computer vision, object placement is the task of determining the optimal bounding box—specifically the location and scale—for a foreground object within a target background. A "rational" placement respects physical constraints and perspective; for instance, a car should reside on a road rather than floating in the sky, and its size must be proportional to its surroundings.

The primary obstacle to advancing object placement models is the "data bottleneck." The standard Object Placement Assessment (OPA) dataset is relatively small and covers a limited range of object categories. Manually labeling placements as rational or irrational is labor-intensive and expensive. Consequently, existing models often struggle with the "generalization gap," failing when asked to place objects from categories not present in their training data. This research introduces a framework designed to bridge this gap by learning from unlabeled data at scale.

Methodology

The proposed framework utilizes a semi-supervised learning loop that iterates between model training and label refinement. It is built upon three core technical pillars:

1. Similarity Transfer (Rationality Variation)

The central innovation of this work is the concept of "similarity transfer." Rather than simply classifying a single placement as good or bad, the model is trained to understand the relationship between two different placements of the same object. For example, if a motorcycle is rational on a paved surface but becomes irrational when moved into a body of water, the model learns that the boundary between these two regions is a critical feature for placement logic. This understanding of how rationality varies with movement and scaling is often universal across different object types, allowing the model to apply "scale logic" learned from one category (e.g., bicycles) to another (e.g., unicycles).

2. Adversarial Domain Adaptation

To address the distribution shift between small labeled datasets (OPA) and large unlabeled datasets (Open Images), the authors employ a Domain Classifier. This adversarial component forces the feature extractor to ignore dataset-specific artifacts and instead focus on features that are universally relevant for determining placement rationality, regardless of the data source.

3. Iterative Pseudo-labeling

The framework utilizes a momentum-based iterative process to incorporate unlabeled data. The model generates "pseudo-labels" (rationality scores) for unlabeled pairs, which are then refined over time. By combining previous pseudo-labels with new predictions using a specific ratio ((\alpha)), the system prevents the model from oscillating or forgetting previously learned patterns during the training process.

Datasets

To facilitate this large-scale learning, the researchers introduced the Open Object Placement Assessment (OOPA) dataset. While the standard OPA dataset contains approximately 62,000 training placements across 47 categories, OOPA provides over 146,000 background-foreground pairs across 124 categories. Notably, 85 of these categories are entirely absent from the OPA training set. The backgrounds in OOPA were processed using Stable Diffusion to "clean" areas where original objects were removed, ensuring high-quality training samples for the placement task.

Results and Discussion

The framework demonstrates significant improvements in both quantitative metrics and qualitative realism:

  • State-of-the-Art Accuracy: On the standard OPA benchmark, the model achieved an accuracy of 0.957, significantly outperforming the previous state-of-the-art (IOPRE) at 0.895.
  • Enhanced Generalization: On the OOPA-e test set, which specifically evaluates categories unseen during labeled training, the method improved the F1-score from 0.791 to 0.840.
  • Qualitative Improvements: Visual analysis indicates that the model is more adept at respecting physical boundaries and maintaining realistic perspective. Unlike previous models like TopNet or GracoNet, which might overlap objects with walls or ignore depth cues, this framework produces placements that align more naturally with the scene geometry.

Conclusion and Future Work

This research demonstrates that understanding the variation of rationality is a powerful tool for overcoming data scarcity in image composition. By focusing on the geometric relationship between objects and their environments, the model achieves a level of "placement for anything" that was previously unattainable.

While the current work focuses on geometry (position and scale), future iterations could integrate appearance-based factors such as lighting, shadows, and color temperature. Additionally, integrating this placement logic into generative pipelines, such as Diffusion models, could lead to more physically grounded and realistic AI-generated imagery.

Summary updated

BibTeX
@inproceedings{gao2025object,
  author = {Bingjie Gao and Bo Zhang and Li Niu},
  title = {{Object Placement for Anything}},
  booktitle = {ICME},
  year = {2025},
  doi = {10.1109/icme59968.2025.11209823},
}
Figure