https://github.com/XingangPan/DragGAN Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. {{ message }} XingangPan / DragGAN Public * Notifications * Fork 1.1k * Star 17.2k Official Code for DragGAN (SIGGRAPH 2023) vcai.mpi-inf.mpg.de/projects/draggan/ License View license 17.2k stars 1.1k forks Star Notifications * Code * Issues 17 * Pull requests 2 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights XingangPan/DragGAN This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 1 branch 0 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/X] Use Git or checkout with SVN using the web URL. [gh repo clone Xingan] Work fast with our official CLI. Learn more about the CLI. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit Git stats * 7 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time dnnlib gui_utils scripts stylegan_human torch_utils training viz .gitignore DragGAN.gif LICENSE.txt README.md environment.yml gen_images.py legacy.py visualizer_drag.py View code Drag Your GAN: Interactive Point-based Manipulation on the Generative Image Manifold Requirements Download pre-trained StyleGAN2 weights Run DragGAN GUI Acknowledgement License BibTeX README.md Drag Your GAN: Interactive Point-based Manipulation on the Generative Image Manifold [DragGAN] Figure: Drag your GAN. Drag Your GAN: Interactive Point-based Manipulation on the Generative Image Manifold Xingang Pan, Ayush Tewari, Thomas Leimkuhler, Lingjie Liu, Abhimitra Meka, Christian Theobalt SIGGRAPH 2023 Conference Proceedings Requirements Please follow the requirements of https://github.com/NVlabs/stylegan3 . Download pre-trained StyleGAN2 weights To download pre-trained weights, simply run: sh scripts/download_model.sh If you want to try StyleGAN-Human and the Landscapes HQ (LHQ) dataset, please download weights from these links: StyleGAN-Human, LHQ, and put them under ./checkpoints. Feel free to try other pretrained StyleGAN. Run DragGAN GUI To start the DragGAN GUI, simply run: sh scripts/gui.sh This GUI supports editing GAN-generated images. To edit a real image, you need to first perform GAN inversion using tools like PTI. Then load the new latent code and model weights to the GUI. Acknowledgement This code is developed based on StyleGAN3. Part of the code is borrowed from StyleGAN-Human. License The code related to the DragGAN algorithm is licensed under CC-BY-NC. However, most of this project are available under a separate license terms: all codes used or modified from StyleGAN3 is under the Nvidia Source Code License. Any form of use and derivative of this code must preserve the watermarking functionality. BibTeX @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 Official Code for DragGAN (SIGGRAPH 2023) vcai.mpi-inf.mpg.de/projects/DragGAN/ Topics artificial-intelligence generative-adversarial-network image-manipulation generative-models Resources Readme License View license Stars 17.2k stars Watchers 1.6k watching Forks 1.1k forks Report repository Releases No releases published Packages 0 No packages published Languages * Python 78.2% * Cuda 17.0% * C++ 4.7% * Shell 0.1% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time.