Abstract
Object placement assessment (OPA) aims to predict the rationality score of a composite image in terms of the placement (e.g., scale, location) of an inserted foreground object. However, given a pair of scaled foreground and background, existing OPA models must place the foreground at each location on the background and pass the obtained composite images through the model one at a time to enumerate all reasonable locations. This iterative process is extremely time-consuming. In this work, we investigate a new task named Fast OPA. Specifically, provided with a scaled foreground and a background, we only pass them through the model once to predict rationality scores for all locations. We propose a pioneering Fast OPA model with several innovations—foreground dynamic filter, background prior transfer, and composite feature mimicking—to bridge the performance gap between slow and fast models. Extensive experiments on the OPA dataset show that our proposed Fast OPA model performs on par with slow OPA models while running significantly faster.
Introduction
Image composition—the art of cutting an object from one image and pasting it into another—is a cornerstone of AR, graphic design, and automated advertising. However, making a composite look "real" is difficult. An object must be placed at a logical location and at a realistic scale to ensure scene rationality.
Existing Object Placement Assessment (OPA) models are "slow" (SOPA). They act as discriminators: a user provides a finished composite, and the model predicts its rationality. To find the best spot for an object, one must manually "slide" the object across every possible pixel on the background and run the model thousands of times. This computational bottleneck makes real-time recommendation or exhaustive search impossible.
Methodology
The authors propose a Fast OPA (FOPA) model that treats placement as a dense prediction task, similar to semantic segmentation. Instead of checking one location at a time, the model processes the foreground and background once and outputs a "rationality score map" for the entire scene. Key technical innovations include:
- Foreground Dynamic Filters: Instead of simple concatenation, the model uses features from the foreground object to generate unique convolutional filters. These are applied to the background feature map, effectively simulating the interaction between the two at every potential coordinate.
- Background Prior Transfer: The FOPA model's background encoder is initialized using weights from a pre-trained SOPA model, allowing the fast model to inherit "common sense" about scene geometry and semantics.
- Composite Feature Mimicking: Through knowledge distillation, the authors force the FOPA model’s pixel-wise features to match the image-level features produced by the SOPA model for specific placements. This helps the fast model "imagine" the final composite's quality without actually rendering it.
Key Results
The FOPA model was evaluated using the Object Placement Assessment (OPA) dataset, which contains 73,470 composite images. To train the dense prediction model, the authors transformed the original image-level labels into pixel-wise annotations.
As shown in the performance comparison, FOPA achieves a staggering 19,000x speedup over the SOPA baseline when generating a full rationality map (0.0164 seconds vs. 310.56 seconds per map). Despite this massive reduction in inference time, FOPA maintains nearly identical accuracy, achieving an F1 score of 0.776 and a balanced accuracy (bAcc) of 0.840, compared to SOPA's 0.780 and 0.842, respectively. Furthermore, FOPA requires significantly fewer computational resources, reducing FLOPs from 159,252G to just 31.94G.
Discussion and Conclusion
FOPA demonstrates that dense prediction is a viable and highly efficient architecture for object placement reasoning. By shifting from iterative classification to a single-pass framework, the model enables real-time placement suggestions.
Future work may address current limitations, such as annotation sparsity and the need for multiple passes to handle different object scales. While the current model focuses on placement rationality, integrating it with lighting harmonization and shadow generation could provide a complete, automated pipeline for high-quality image composition.
Summary updated