Skip to content

Unofficial implementation of "Drag Your GAN: Interactive Point-based Manipulation on the Generative Image Manifold"

Notifications You must be signed in to change notification settings

qingfengfenga/DragGAN

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DragGAN

💥 Colab Demo | InternGPT Free Online Demo

An out-of-box online demo is integrated in InternGPT - a super cool pointing-language-driven visual interactive system. Enjoy for free.:lollipop:

Note for Colab, remember to select a GPU via Runtime/Change runtime type (代码执行程序/更改运行时类型).

Due to the limitation of GAN inversion, it is possible that your custom images are distorted. Besides, it is also possible the manipulations fail due to the limitation of our implementation.

Unofficial implementation of Drag Your GAN: Interactive Point-based Manipulation on the Generative Image Manifold

demo

🌟 Updates

  • Tweak performance.
  • Integrate into InternGPT
  • Automatically determining the number of iterations.
  • Custom Image with GAN inversion.
  • Download generated image and generation trajectory.
  • Controling generation process with GUI.
  • Automatically download stylegan2 checkpoint.
  • Support movable region, mutliple handle points.
  • Gradio and Colab Demo.

Demo

Results of our implementation.

demo.mp4

Usage

Ensure you have a GPU and PyTorch, Gradio installed. You could install all the requirements via,

pip install -r requirements.txt

Lanuch the Gradio demo

python gradio_app.py

If you have any issuse for downloading the checkpoint, you could manually download it from here and put it into the folder checkpoints.

Acknowledgement

Official DragGANStyleGAN2StyleGAN2-pytorch

Citation

@inproceedings{pan2023draggan,
    title={Drag Your GAN: Interactive Point-based Manipulation on the Generative Image Manifold}, 
    author={Pan, Xingang and Tewari, Ayush, and Leimk{\"u}hler, Thomas and Liu, Lingjie and Meka, Abhimitra and Theobalt, Christian},
    booktitle = {ACM SIGGRAPH 2023 Conference Proceedings},
    year={2023}
}

About

Unofficial implementation of "Drag Your GAN: Interactive Point-based Manipulation on the Generative Image Manifold"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 83.1%
  • Cuda 13.1%
  • C++ 2.3%
  • Jupyter Notebook 1.5%