Hysen Labs
Open-source project
XingangPan/DragGAN avatar
XingangPan

DragGAN

Official Code for DragGAN (SIGGRAPH 2023)

35,766 stars3,404 forksPythonNOASSERTION
01
DEEP OPEN-SOURCE ANALYSIS

DragGAN: drag points to edit a generated image

Official code for the SIGGRAPH 2023 DragGAN paper on interactive point based manipulation on the generative image manifold.

02
DEEP OPEN-SOURCE ANALYSIS

What the paper proposes

This is the official code for DragGAN, published at SIGGRAPH 2023. The paper is titled interactive point based manipulation on the generative image manifold, and the README lists the authors. The README gives the title verbatim and leaves the theory to the paper itself. Python is the primary language, and the homepage is an MPI research project page. The paper page at the MPI site is where the project puts its academic context.

03
DEEP OPEN-SOURCE ANALYSIS

Installation paths

The usual installation steps set up the correct CUDA version and all the Python packages. For GPU acceleration on macOS with Silicon Mac M1 or M2, or for CPU only use, alternative steps are provided. The README keeps the install section short, assuming a reader who has done this before. The two install paths share the same visualizer, so the interaction layer is consistent either way. The project uses a Gradio visualizer for interaction.

04
DEEP OPEN-SOURCE ANALYSIS

Running the visualizer

The Gradio visualizer can be run in Docker, with a provided Docker image based on the NGC PyTorch repository. Users open the shared link that Gradio prints in the terminal console. The README warns that the Docker image takes about 25GB of disk space, and points back to the CPU or macOS steps for environments without GPU acceleration. The disk space warning is the only number the README bothers to give.

05
DEEP OPEN-SOURCE ANALYSIS

Editorial conclusion

The README is thin and mostly setup: CUDA, an alternative path for Silicon Macs and CPU machines, and a Docker Gradio app that prints a shared link. The paper page carries the actual substance.

06
DEEP OPEN-SOURCE ANALYSIS

Official sources

07
Community notes

Community notes