ControlCom: Controllable Image Composition using Diffusion Model

Bo Zhang, Yuxuan Duan, Jun Lan, Yan Hong, Huijia Zhu +2 more
8/19/2023
cs.CV
diffusion-flow

Official code: bcmi/ControlCom-Image-Composition (186 stars, MIT, last commit 2026-02-24).

Abstract

Image composition targets at synthesizing a realistic composite image from a pair of foreground and background images. Recently, generative composition methods are built on large pretrained diffusion models to generate composite images, considering their great potential in image generation. However, they suffer from lack of controllability on foreground attributes and poor preservation of foreground identity. To address these challenges, we propose a controllable image composition method that unifies four tasks in one diffusion model: image blending, image harmonization, view synthesis, and generative composition. Meanwhile, we design a self-supervised training framework coupled with a tailored pipeline of training data preparation. Moreover, we propose a local enhancement module to enhance the foreground details in the diffusion model, improving the foreground fidelity of composite images. The proposed method is evaluated on both public benchmark and real-world data, which demonstrates that our method can generate more faithful and controllable composite images than existing approaches. The code and model will be available at https://github.com/bcmi/ControlCom-Image-Composition.

View on arXivView PDF

Code Implementations(1)

MIT

A controllable image composition model which could be used for image blending, image harmonization, view synthesis.

18612Shell, PythonAug 19, 20238 months agoMIT
diffusion-modelimage-blendingimage-compositionimage-harmonizationobject-insertion

Similar Papers

Cite this paper

@article{zhang2023controlcom,
  title  = {ControlCom: Controllable Image Composition using Diffusion Model},
  author = {Bo Zhang and Yuxuan Duan and Jun Lan and Yan Hong and Huijia Zhu and Weiqiang Wang and Li Niu},
  year   = {2023},
  eprint = {2308.10040},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.10040v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.10040.svg)](https://codeofpaper.com/paper/2308.10040)

Discussion