Our new X account is live! Follow @wizwand_team for updates
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-style image editingFaceForensics++ (test)
FID51.37
9
2D-editsGeoBench 1.0 (test)
FID37.68
9
Drag-style image editingTED-talks (test)
FID91.77
9
Drag-based Image EditingDragBench-SR 26
MD32.9
8
Drag-based Image EditingDragBench-DR 33
Mean Distance (MD)35.38
8
Geometric Image EditingUser Study 1.0 (test)
Move Count8
8
Drag-based Image EditingDragBench-SR and DragBench-DR User Study images
CP Win38.6
7
Drag-based Image EditingDragBench
MD34.57
7
2D Mesh EditingAPAP-BENCH 2D
k-NN GIQA4.545
6
Showing 10 of 15 rows

Other info

Code

Follow for update