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

DragDiffusion: Harnessing Diffusion Models for Interactive Point-based Image Editing

About

Accurate and controllable image editing is a challenging task that has attracted significant attention recently. Notably, DragGAN is an interactive point-based image editing framework that achieves impressive editing results with pixel-level precision. However, due to its reliance on generative adversarial networks (GANs), its generality is limited by the capacity of pretrained GAN models. In this work, we extend this editing framework to diffusion models and propose a novel approach DragDiffusion. By harnessing large-scale pretrained diffusion models, we greatly enhance the applicability of interactive point-based editing on both real and diffusion-generated images. Our approach involves optimizing the diffusion latents to achieve precise spatial control. The supervision signal of this optimization process is from the diffusion model's UNet features, which are known to contain rich semantic and geometric information. Moreover, we introduce two additional techniques, namely LoRA fine-tuning and latent-MasaCtrl, to further preserve the identity of the original image. Lastly, we present a challenging benchmark dataset called DragBench -- the first benchmark to evaluate the performance of interactive point-based image editing methods. Experiments across a wide range of challenging cases (e.g., images with multiple objects, diverse object categories, various styles, etc.) demonstrate the versatility and generality of DragDiffusion. Code: https://github.com/Yujun-Shi/DragDiffusion.

Yujun Shi, Chuhui Xue, Jun Hao Liew, Jiachun Pan, Hanshu Yan, Wenqing Zhang, Vincent Y. F. Tan, Song Bai• 2023

Related benchmarks

TaskDatasetResultRank
Image Editing1024 x 1024 resolution--
14
Drag-based Image EditingReD Bench
IFbg94.4
10
image drag-editingDragBench DR (averages)
Prep + Edit Time (s)82.1
10
Drag-based Image EditingDragBench DR
IF (Background)95.4
10
Drag-style image editingFaceForensics++ (test)
FID51.37
9
2D-editsGeoBench 1.0 (test)
FID37.68
9
Drag-style image editingTED-talks (test)
FID91.77
9
User-controlled Image EditingCurated benchmark of 50 subjects
LPIPS0.117
8
Drag-based Image EditingDragBench-SR 26
MD32.9
8
Drag-based Image EditingDragBench-DR 33
Mean Distance (MD)35.38
8
Showing 10 of 19 rows

Other info

Code

Follow for update