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

DiffEdit: Diffusion-based semantic image editing with mask guidance

About

Image generation has recently seen tremendous advances, with diffusion models allowing to synthesize convincing images for a large variety of text prompts. In this article, we propose DiffEdit, a method to take advantage of text-conditioned diffusion models for the task of semantic image editing, where the goal is to edit an image based on a text query. Semantic image editing is an extension of image generation, with the additional constraint that the generated image should be as similar as possible to a given input image. Current editing methods based on diffusion models usually require to provide a mask, making the task much easier by treating it as a conditional inpainting task. In contrast, our main contribution is able to automatically generate a mask highlighting regions of the input image that need to be edited, by contrasting predictions of a diffusion model conditioned on different text prompts. Moreover, we rely on latent inference to preserve content in those regions of interest and show excellent synergies with mask-based diffusion. DiffEdit achieves state-of-the-art editing performance on ImageNet. In addition, we evaluate semantic image editing in more challenging settings, using images from the COCO dataset as well as text-based generated images.

Guillaume Couairon, Jakob Verbeek, Holger Schwenk, Matthieu Cord• 2022

Related benchmarks

TaskDatasetResultRank
Image EditingPIE-Bench (test)
PSNR15.899
55
Image EditingImageNet real-edit
CS Score26.5
11
Image EditingIMBA
CLIP Score28.58
11
Affective Visual CustomizationL-AVC (test)
FID0.118
10
Image EditingIMBA 1.0 (test)
Object Retention Score4.58
9
Text-to-Image EditingWild-TI2I real
CS26.33
9
Image Color EditingPASCAL VOC (val)
DINO Dist0.061
8
Image Material EditingPASCAL VOC (val)
DINO Distance0.068
8
Subject SwappingDreamEditBench
DINO Subject Score0.51
8
Semantic-aware image editingSemantic-aware image editing dataset (test)
PSNR24.13
7
Showing 10 of 26 rows

Other info

Follow for update