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

Xingang Pan, Ayush Tewari, Thomas Leimkühler, Lingjie Liu, Abhimitra Meka +1 more
5/18/2023
385 citations
cs.CVcs.GR

Official code: XingangPan/DragGAN (35,700 stars, Python, last commit 2024-05-18). 2 more implementations below.

Abstract

Synthesizing visual content that meets users' needs often requires flexible and precise controllability of the pose, shape, expression, and layout of the generated objects. Existing approaches gain controllability of generative adversarial networks (GANs) via manually annotated training data or a prior 3D model, which often lack flexibility, precision, and generality.

Show full abstract

In this work, we study a powerful yet much less explored way of controlling GANs, that is, to "drag" any points of the image to precisely reach target points in a user-interactive manner, as shown in Fig.1. To achieve this, we propose DragGAN, which consists of two main components: 1) a feature-based motion supervision that drives the handle point to move towards the target position, and 2) a new point tracking approach that leverages the discriminative generator features to keep localizing the position of the handle points. Through DragGAN, anyone can deform an image with precise control over where pixels go, thus manipulating the pose, shape, expression, and layout of diverse categories such as animals, cars, humans, landscapes, etc. As these manipulations are performed on the learned generative image manifold of a GAN, they tend to produce realistic outputs even for challenging scenarios such as hallucinating occluded content and deforming shapes that consistently follow the object's rigidity. Both qualitative and quantitative comparisons demonstrate the advantage of DragGAN over prior approaches in the tasks of image manipulation and point tracking. We also showcase the manipulation of real images through GAN inversion.

View on arXivView PDF

Code Implementations(3)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
XingangPan/DragGANOfficial35,700Python–2024-05-18
OpenGVLab/DragGANCommunity4,923Python–2023-07-17
skimai/DragGANCommunity37PythonMIT2023-05-27
XingangPan/DragGANOfficial100%

Official Code for DragGAN (SIGGRAPH 2023)

35,7003,383Python, CudaMay 18, 20232 years agoNOASSERTION
artificial-intelligencegenerative-adversarial-networkgenerative-modelsimage-manipulation
OpenGVLab/DragGANCommunity68%

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

4,923471Python, CudaMay 20, 20233 years ago
draggangradio-interfaceimage-editingimage-generationinterngpt
skimai/DragGANCommunity64%
MIT

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

375Python, CudaMay 25, 20233 years agoMIT

Similar Papers

Cite this paper

@article{pan2023drag,
  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   = {2023},
  eprint = {2305.10973},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.10973v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.10973.svg)](https://codeofpaper.com/paper/2305.10973)

Discussion