DreamCom: Finetuning Text-guided Inpainting Model for Image Composition

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Lu, Lingxiao, Li, Jiangtong, Zhang, Bo, Niu, Li
Natura: Preprint
Pubblicazione: 2023
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909081870008320
author Lu, Lingxiao
Li, Jiangtong
Zhang, Bo
Niu, Li
author_facet Lu, Lingxiao
Li, Jiangtong
Zhang, Bo
Niu, Li
contents The goal of image composition is merging a foreground object into a background image to obtain a realistic composite image. Recently, generative composition methods are built on large pretrained diffusion models, due to their unprecedented image generation ability. However, they are weak in preserving the foreground object details. Inspired by recent text-to-image generation customized for certain object, we propose DreamCom by treating image composition as text-guided image inpainting customized for certain object. Specifically , we finetune pretrained text-guided image inpainting model based on a few reference images containing the same object, during which the text prompt contains a special token associated with this object. Then, given a new background, we can insert this object into the background with the text prompt containing the special token. In practice, the inserted object may be adversely affected by the background, so we propose masked attention mechanisms to avoid negative background interference. Experimental results on DreamEditBench and our contributed MureCom dataset show the outstanding performance of our DreamCom.
format Preprint
id arxiv_https___arxiv_org_abs_2309_15508
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle DreamCom: Finetuning Text-guided Inpainting Model for Image Composition
Lu, Lingxiao
Li, Jiangtong
Zhang, Bo
Niu, Li
Computer Vision and Pattern Recognition
The goal of image composition is merging a foreground object into a background image to obtain a realistic composite image. Recently, generative composition methods are built on large pretrained diffusion models, due to their unprecedented image generation ability. However, they are weak in preserving the foreground object details. Inspired by recent text-to-image generation customized for certain object, we propose DreamCom by treating image composition as text-guided image inpainting customized for certain object. Specifically , we finetune pretrained text-guided image inpainting model based on a few reference images containing the same object, during which the text prompt contains a special token associated with this object. Then, given a new background, we can insert this object into the background with the text prompt containing the special token. In practice, the inserted object may be adversely affected by the background, so we propose masked attention mechanisms to avoid negative background interference. Experimental results on DreamEditBench and our contributed MureCom dataset show the outstanding performance of our DreamCom.
title DreamCom: Finetuning Text-guided Inpainting Model for Image Composition
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2309.15508