// image · OpenGVLab/DragGAN

DragGAN

DragGAN — проект с открытым исходным кодом из категории «Изображения» от OpenGVLab (OpenGVLab/DragGAN на GitHub). У него 4 936 звёзд на GitHub и 473 форка, он распространяется по лицензии NOASSERTION и последний раз обновлялся на GitHub 17 июля 2023.

Unofficial DragGAN implementation: drag points on a GAN image to edit it interactively

★ 4,9 тыс. звёзд⑂ 473 форкаNOASSERTIONобновлено июль 2023
▦ визуал — в README этого проекта нет встраиваемого скриншота,
поэтому здесь заглушка. Руководство ниже в любом случае полное.
// факты о проекте

Факты о проекте

Репозиторий
OpenGVLab/DragGAN
Звёзды GitHub
4 936
Форки
473
Лицензия
NOASSERTION
Последнее обновление на GitHub
17 июля 2023
Категория
Изображения
Тип страницы
Полное руководство по установке
// как это работает

Как это работает

  1. Pick how to try it

    Use the Colab or InternGPT online demo for a quick look, or install locally for custom images and models.

  2. Install the package

    DragGAN is published on PyPI, so a local install is a single pip command (a GPU runtime is recommended).

  3. Load a model

    Start the Gradio interface and pick a StyleGAN2 or StyleGAN2-ada checkpoint; checkpoints download automatically.

  4. Drag your first points

    Set handle and target points on the image, optionally define a movable region, and run the manipulation.

// возможности

Почему его любят

Point-based dragging

Interactive handle/target point manipulation on the generative image manifold, with multiple handle points supported.

StyleGAN2-ada support

Higher-quality generation across more image types by selecting models whose names start with 'ada'.

Custom image editing

Upload your own image and edit it through GAN inversion (the README notes inversion can distort some images).

Gradio GUI and demos

A Gradio interface controls the generation process, plus Colab and InternGPT-hosted demos.

Automatic checkpoints

StyleGAN2 checkpoints download automatically, and you can download the generated image and generation trajectory.

Movable regions

Define a movable region so drags affect only the part of the image you intend to change.

Advertisement
// запустите сами

Запустите сами

  1. Clone the repository

    Clone the project and enter its directory.

    git clone https://github.com/OpenGVLab/DragGAN.git
    cd DragGAN
  2. Install from PyPI

    The README documents DragGAN on PyPI; version 1.1.0 is recommended if you want to upload custom images.

    pip install draggan==1.1.0
  3. Run it locally

    Follow the repository's INSTALL.md for the full local deployment steps, then launch the Gradio interface.

    # see INSTALL.md in the repo for the exact local run command
// сценарии использования

Что можно создать

Advertisement
// вопросы и ответы

Вопросы и ответы

Who maintains this DragGAN repo?

OpenGVLab hosts this unofficial implementation (originally by Zeqiang-Lai); the underlying DragGAN paper is by Xingang Pan and co-authors, and an official implementation is linked from the README.

Is DragGAN free?

The code is publicly available on GitHub and PyPI, but the README states no license, so its license is unasserted — check the repository before commercial reuse.

Does it need a paid API key?

No. It runs locally (or in the free Colab demo); a GPU is strongly recommended for usable speed.

How does it compare to the official DragGAN?

This is an unofficial reimplementation aiming at full features, including StyleGAN2-ada and custom-image inversion; the official code, released in June 2023, is linked from the README if you prefer the authors' version.

How do I get started?

Run `pip install draggan` (or `pip install draggan==1.1.0` for custom-image upload), then follow INSTALL.md — or open the Colab demo and select a GPU runtime.

// продолжить изучение

Похожие инструменты

Изображения

pytorch-CycleGAN-and-pix2pix

The classic PyTorch implementation of CycleGAN and pix2pix for image-to-image translation

★ 25,3 тыс. звёздNOASSERTION
Смотреть руководство →
Изображения

NanoBananaEditor

Advanced Nano Banana image studio — generate, mask-edit and track versions

★ 716 звёздAGPL-3.0
Смотреть руководство →
Изображения

Anime2Sketch

Extract clean line sketches from anime art, illustrations, and manga with a pretrained GAN model.

★ 2,1 тыс. звёздMIT
Смотреть руководство →
Изображения

immich-analyze

AI image descriptions for Immich — Ollama analyzes, database updates

★ 81 звездаGPL-3.0
Смотреть руководство →
Изображения

contrastive-unpaired-translation

CUT — contrastive unpaired image-to-image translation in PyTorch, faster and lighter than CycleGAN (ECCV 2020)

★ 2,6 тыс. звёздNOASSERTION
Смотреть руководство →
Изображения

RealScaler

Real-ESRGAN image and video upscaler app with GPU acceleration

★ 428 звёздMIT
Смотреть руководство →
// альтернативы

Альтернативы: Изображения

Другие проекты из категории «Изображения» с наибольшим числом звёзд в каталоге LibreAI — реалистичный список альтернатив, если DragGAN вам не подходит.

// ещё в категории image

Больше проектов: Изображения

Соседние проекты из категории «Изображения» в каталоге, ближайшие по числу звёзд к DragGAN — продолжайте изучать полку по обе стороны от него.

Получить DragGAN

Бесплатно и открыто — забирайте исходный код, ставьте звезду репозиторию и начинайте создавать.