CLIPDrag: Combining Text-based and Drag-based Instructions for Image Editing
About
Precise and flexible image editing remains a fundamental challenge in computer vision. Based on the modified areas, most editing methods can be divided into two main types: global editing and local editing. In this paper, we choose the two most common editing approaches (ie text-based editing and drag-based editing) and analyze their drawbacks. Specifically, text-based methods often fail to describe the desired modifications precisely, while drag-based methods suffer from ambiguity. To address these issues, we proposed \textbf{CLIPDrag}, a novel image editing method that is the first to combine text and drag signals for precise and ambiguity-free manipulations on diffusion models. To fully leverage these two signals, we treat text signals as global guidance and drag points as local information. Then we introduce a novel global-local motion supervision method to integrate text signals into existing drag-based methods by adapting a pre-trained language-vision model like CLIP. Furthermore, we also address the problem of slow convergence in CLIPDrag by presenting a fast point-tracking method that enforces drag points moving toward correct directions. Extensive experiments demonstrate that CLIPDrag outperforms existing single drag-based methods or text-based methods.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Drag-based Image Editing | DragBench | MD32.3 | 16 | |
| Image Editing | TV-Edit-Bench | DS_tgt_global87.41 | 13 | |
| Drag-based Image Editing | ReD Bench | IFbg95.2 | 10 | |
| Drag-based Image Editing | DragBench DR | IF (Background)96.2 | 10 | |
| Dragging-based Image Editing | Mix of DragBench and custom data | LPIPS0.88 | 10 | |
| image drag-editing | DragBench DR (averages) | Prep + Edit Time (s)101 | 10 | |
| Dragging-based Image Editing | DragBench and custom dataset | Optimization Time (s)151 | 4 |