XuanjiaZ / FastDrag

[NIPS 2024] Official code for FastDrag
Apache License 2.0
16 stars 0 forks source link

[NIPS 2024] Official code for FastDrag

FastDrag: Manipulate Anything in One Step

Xuanjia Zhao    Jian Guan    Congyi Fan    Dongli Xu   
Youtian Lin    Haiwei Pan    Pengming Feng


arXiv page


Installation

To install the required libraries, simply run the following command:

conda env create -f environment.yaml
conda activate fastdrag

Config

If you want download huggingface weights in local, you should download runwayml/stable-diffusion-v1-5 and SimianLuo/LCM_Dreamshaper_v7.

Then you can set path in config as below: config

Run Fastdrag

To start with, in command line, run the following to start the gradio user interface:

python drag_ui.py

For users struggling in loading models from huggingface due to internet constraint, please run:

sh run_drag.sh

License

Code related to the FastDrag algorithm is under Apache 2.0 license.

BibTeX

If you find our repo helpful, please consider leaving a star or cite our paper :)

@misc{zhao2024fastdrag,
        title={FastDrag: Manipulate Anything in One Step}, 
        author={Xuanjia Zhao and Jian Guan and Congyi Fan and Dongli Xu and Youtian Lin and Haiwei Pan and Pengming Feng},
        year={2024},
        eprint={2405.15769},
        archivePrefix={arXiv},
        primaryClass={cs.CV}
        }

Acknowledgement

The code is built based on DragDiffusion and diffusers, thanks for their outstanding work!

Notice

For the fisrt time to run, it may be slow, but it will perform normally afterwards.