back to home

OpenGVLab / DragGAN

Unofficial Implementation of DragGAN - "Drag Your GAN: Interactive Point-based Manipulation on the Generative Image Manifold" (DragGAN 全功能实现,在线Demo,本地部署试用,代码、模型已全部开源,支持Windows, macOS, Linux)

4,968 stars
482 forks
63 issues
PythonCudaC++

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing OpenGVLab/DragGAN in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/OpenGVLab/DragGAN)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

DragGAN :boom: > **Note for Colab, remember to select a GPU via ( ).** > > If you want to upload custom image, please install 1.1.0 via . 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. 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 , includes speed improvement and more models. • [2023/5/25] DragGAN is on PyPI, simple install via . 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** • [x] Add a docker image, thanks @egbaydarov. • [ ] PTI GAN inversion https://github.com/Zeqiang-Lai/DragGAN/issues/71#issuecomment-1573461314 • [x] Tweak performance, See v2. • [x] Improving installation experience, DragGAN is now on PyPI. • [x] Automatically determining the number of iterations, See v2. • [ ] Allow to save video without point annotations, custom image size. • [x] Support StyleGAN2-ada. • [x] Integrate into InternGPT • [x] Custom Image with GAN inversion. • [x] Download generated image and generation trajectory. • [x] Controlling generation process with GUI. • [x] Automatically download stylegan2 checkpoint. • [x] Support movable region, multiple handle points. • [x] 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 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.