Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

DreamCom: Finetuning Text-guided Inpainting Model for Image Composition

About

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.

Lingxiao Lu, Jiangtong Li, Bo Zhang, Li Niu• 2023

Related benchmarks

TaskDatasetResultRank
Compositional Image GenerationComplexCompo 300
CLIP-I0.648
20
Image CompositionDreamEditBench 220
CLIP-I0.7414
14
Image CompositionResolution Benchmark 512 x 512
Latency (s)9.87
13
Image CompositionUser Study
Average Ranking6.66
13
Image EditingDreamEdit-Bench 220
HPSv35.9324
13
Image EditingComplex-Compo 300
HPSv37.9884
13
Showing 6 of 6 rows

Other info

Follow for update