All models

DragGAN

DragGAN, point-based interactive editing of images on a StyleGAN2 generator.

Diffusion and generative · 806 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (73 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
30.3M
Operations
806
Framework
PyTorch
Recurrent
No
Published
SIGGRAPH 2023
Cited by
208 (as of 24 October 2026)
Authors
Xingang Pan, Ayush Tewari, Thomas Leimkühler and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m16191
Graph hash
6ebdf1addb7352fd8b295142bb5275395f02b71fa46512bdc68b12695122d02f
Skeleton hash
60b5f43b258537a81ad80fce5faad585c5fda619fb315547ec71a0daf85f13df
Architecture hash
b37351cefb3fa0218383be1aae92326de2a3cae70f7e5daad64954885a0e1133
Diagram SHA-256
0d45ecd902bb62a9e9ba4b57ce6515102aef17a4391b01abf0b679e7916d589f
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

DragGAN is an interactive way to edit GAN-generated images by dragging points of the image to target positions. It has two components: a feature-based motion supervision that drives each handle point toward its target, and a point tracking approach that uses the generator's features to keep locating the handle points. The paper's study is based on the StyleGAN2 architecture.

Editing runs as an optimization in which each step has two sub-steps, motion supervision and point tracking. Motion supervision uses a shifted patch loss on the feature maps of the generator. Those feature maps are taken after the 6th block of StyleGAN2. Point tracking then finds each handle point again by nearest neighbor search in the same feature space. Only the latent codes for the first 6 layers are updated, which preserves appearance. The loop usually takes 30-200 iterations in the paper's experiments. A user can also draw a mask of the flexible region, and the rest of the image is kept fixed.

The paper evaluates DragGAN on datasets of animals, humans, cars and landscapes. On face landmark manipulation it reports that DragGAN significantly outperforms UserControllableLT under different numbers of points. Real images can be edited as well, through GAN inversion. The paper notes that handle points in texture-less regions sometimes drift more during tracking.

Key idea. DragGAN lets a user drag points of a GAN-generated image to target positions by optimizing the latent code with feature-based motion supervision and tracking the points in generator features.

  • draggan
  • drag your gan
  • interactive point-based manipulation
  • point-based image editing
  • drag editing
  • gan image editing
  • image manipulation
  • generative image manifold
  • handle points

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{pan2024dragganinteractivepointbased,
      title={Drag Your GAN: Interactive Point-based Manipulation on the Generative Image Manifold}, 
      author={Xingang Pan and Ayush Tewari and Thomas Leimkühler and Lingjie Liu and Abhimitra Meka and Christian Theobalt},
      year={2024},
      eprint={2305.10973},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      doi={https://doi.org/10.1145/3588432.3591500},
      url={https://arxiv.org/abs/2305.10973}, 
}