项目介绍

OpenGVLab/DragGAN 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,目前获得 4.9k 个 Star、471 次 Fork。

仓库全名
OpenGVLab/DragGAN
Star 数
4.9k
Fork 数
471
未关闭 Issue
63

README 摘要

DragGAN :boom: Colab Demo Awesome-DragGAN InternGPT Demo Local Deployment Note for Colab, remember to select a GPU via Runtime/Change runtime type (代码执行程序/更改运行时类型). If you want to upload custom image, please install 1.1.0 via pip install draggan==1.1.0. Unofficial implementation of Drag Your GAN: Interactive Point-based Manipulation on the Generative Image Manifold How it Work ? Here is a simple tutorial video…

完整内容见 GitHub 原始 README 或本页 。

常见问题

DragGAN 用什么语言开发?

主要使用 Python 编写,目前有 4.9k 个 Star。

如何获取 DragGAN 的源码?

可以直接克隆仓库:git clone https://github.com/OpenGVLab/DragGAN.git,默认分支为 main;安装与运行步骤见仓库 README。

DragGAN 最近还在维护吗?

仓库最近一次更新为 2023年7月17日,当前有 63 个未关闭 Issue;Star 数为 4.9k,可作为社区活跃度的参考。

简要分析

热度分
5930
价值分
3099
活跃状态
活跃

语言占比

C++
Cuda
Dockerfile
Jupyter Notebook
Python

README

DragGAN

PyPI support

:boom: Colab Demo Awesome-DragGAN InternGPT Demo Local Deployment

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

If you want to upload custom image, please install 1.1.0 via pip install draggan==1.1.0.

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

How it Work ?

Here is a simple tutorial video showing how to use our implementation.

https://github.com/Zeqiang-Lai/DragGAN/assets/26198430/f1516101-5667-4f73-9330-57fc45754283

Check out the original paper for the backend algorithm and math.

demo

News

:star2: What’s New

  • [2023/6/25] Relase version 1.1.1, it includes a major bug fix and speed improvement.
  • [2023/6/25] Official Code is released, check it out.
  • [2023/5/29] A new version is in beta, install via pip install draggan==1.1.0b2, includes speed improvement and more models.
  • [2023/5/25] DragGAN is on PyPI, simple install via pip install draggan. Also addressed the common CUDA problems https://github.com/Zeqiang-Lai/DragGAN/issues/38 https://github.com/Zeqiang-Lai/DragGAN/issues/12
  • [2023/5/25] We now support StyleGAN2-ada with much higher quality and more types of images. Try it by selecting models started with “ada”.
  • [2023/5/24] An out-of-box online demo is integrated in InternGPT - a super cool pointing-language-driven visual interactive system. Enjoy for free.:lollipop:
  • [2023/5/24] Custom Image with GAN inversion is supported, but it is possible that your custom images are distorted due to the limitation of GAN inversion. Besides, it is also possible the manipulations fail due to the limitation of our implementation.

:star2: Changelog

  • Add a docker image, thanks @egbaydarov.
  • PTI GAN inversion https://github.com/Zeqiang-Lai/DragGAN/issues/71#issuecomment-1573461314
  • Tweak performance, See v2.
  • Improving installation experience, DragGAN is now on PyPI.
  • Automatically determining the number of iterations, See v2.
  • Allow to save video without point annotations, custom image size.
  • Support StyleGAN2-ada.
  • Integrate into InternGPT
  • Custom Image with GAN inversion.
  • Download generated image and generation trajectory.
  • Controlling generation process with GUI.
  • Automatically download stylegan2 checkpoint.
  • Support movable region, multiple handle points.
  • Gradio and Colab Demo.

This project is now a sub-project of InternGPT for interactive image editing. Future updates of more cool tools beyond DragGAN would be added in InternGPT.

Running Locally

Please refer to INSTALL.md.

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}
}

Acknowledgement

Official DragGAN   DragGAN-Streamlit   StyleGAN2   StyleGAN2-pytorch   StyleGAN2-Ada   StyleGAN-Human   Self-Distilled-StyleGAN

Welcome to discuss with us and continuously improve the user experience of DragGAN. Reach us with this WeChat QR Code.

imageimage

评论

暂无评论