Salient Object-Aware Background Generation using Text-Guided Diffusion Models
Amir Erfan Eshratifar, Joao V. B. Soares, Kapil Thadani, Shaunak Mishra, Mikhail Kuznetsov, Yueh-Ning Ku, Paloma de Juan
TL;DR
The paper tackles salient object outpainting by identifying object expansion as a key failure mode when using standard inpainting diffusion models to generate backgrounds. It proposes a ControlNet-augmented extension of Stable Inpainting 2.0 that conditioning on both the salient object mask and the masked image to constrain object boundaries, and introduces an automated object-expansion metric based on SAM-derived masks: $E = area(m_{o} \cup m_{i}) - area(m_{i})$. Across multiple datasets, the approach reduces object expansion by an average of 3.6× compared to SI2 while maintaining standard visual metrics, and training with COCO data improves background diversity. The work has practical implications for e-commerce and design by enabling more faithful background generation around salient subjects, and it discusses future directions including non-salient object backgrounds and alternative control architectures.
Abstract
Generating background scenes for salient objects plays a crucial role across various domains including creative design and e-commerce, as it enhances the presentation and context of subjects by integrating them into tailored environments. Background generation can be framed as a task of text-conditioned outpainting, where the goal is to extend image content beyond a salient object's boundaries on a blank background. Although popular diffusion models for text-guided inpainting can also be used for outpainting by mask inversion, they are trained to fill in missing parts of an image rather than to place an object into a scene. Consequently, when used for background creation, inpainting models frequently extend the salient object's boundaries and thereby change the object's identity, which is a phenomenon we call "object expansion." This paper introduces a model for adapting inpainting diffusion models to the salient object outpainting task using Stable Diffusion and ControlNet architectures. We present a series of qualitative and quantitative results across models and datasets, including a newly proposed metric to measure object expansion that does not require any human labeling. Compared to Stable Diffusion 2.0 Inpainting, our proposed approach reduces object expansion by 3.6x on average with no degradation in standard visual metrics across multiple datasets.
