Home

Awesome

InstantDrag

<p align="center"> <img src="assets/demo.gif" alt="Demo video"> </p> <br/>

Official implementation of the paper "InstantDrag: Improving Interactivity in Drag-based Image Editing" (SIGGRAPH Asia 2024).

<p align="center"> <a href="https://arxiv.org/abs/2409.08857"><img src="https://img.shields.io/badge/arxiv-2409.08857-b31b1b"></a> <a href="https://joonghyuk.com/instantdrag-web/"><img src="https://img.shields.io/badge/Project%20Page-InstantDrag-blue"></a> <a href="https://huggingface.co/alex4727/InstantDrag"><img src="https://img.shields.io/badge/%F0%9F%A4%97%20HuggingFace-Model-forestgreen"></a> </p>

Setup

  1. Create and activate a conda environment:

    conda create -n instantdrag python=3.10 -y
    conda activate instantdrag
    
  2. Install PyTorch:

    pip install torch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 --index-url https://download.pytorch.org/whl/cu121
    
  3. Install other dependencies:

    pip install transformers==4.44.2 diffusers==0.30.1 accelerate==0.33.0 gradio==4.44.0 opencv-python
    

    Note: Exact version matching may not be necessary for all dependencies.

Demo

To run the demo:

cd demo/
CUDA_VISIBLE_DEVICES=0 python run_demo.py

Disclaimer

Usage Instructions & Tips

Note: The initial run may take longer as models are loaded to GPU.

BibTeX

If you find this work useful, please cite them as below!

@inproceedings{shin2024instantdrag,
      title     = {{InstantDrag: Improving Interactivity in Drag-based Image Editing}},
      author    = {Shin, Joonghyuk and Choi, Daehyeon and Park, Jaesik},
      booktitle = {ACM SIGGRAPH Asia 2024 Conference Proceedings},
      year      = {2024},
      pages     = {1--10},
}