OpenViSTAI · Agents · Blockchain · Crypto
Menu
Image & Video AI

Dragdiffusion

Dragdiffusion is a Python research codebase for interactive point-based image editing with diffusion models. Its Gradio interface supports editing input images after LoRA training and editing images generated through the interface, using masks and handle and target points to direct changes.

Independent OpenViST project profile, based on linked sources.

Dragdiffusion — OpenViST project profile in Image & Video AI.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use Dragdiffusion when you want to explore or implement an interactive diffusion-editing workflow that directs changes with masks and point positions, and can run the documented local Python interface.

Who it is for

  • Researchers studying diffusion-based image editing.
  • Developers prototyping interactive, point-guided image manipulation.

Documented uses

  • Guide an image edit by marking an editable region and moving image content between chosen points.
  • Train a LoRA from an input image and prompt as part of the real-image editing workflow.
  • Generate an image through the interface and then edit it with mask and point controls.
Before you choose

Requirements & limits

The repository is public and its algorithm code is licensed under Apache 2.0. The project is presented as research code, not a commercial product.

  • Local setup uses Conda and the repository’s environment.yaml file.
  • The maintainers recommend Linux with an Nvidia GPU and report around 14 GB of GPU memory; they had not tested other configurations.
  • The real-image workflow trains a LoRA before editing; the generated-image workflow first creates an image using generation parameters.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Set up the local editing interface

Create the Conda environment and start Dragdiffusion’s Gradio interface.

Before you start

  • Python code checked out from the public repository.
  • Conda to create and activate the environment described by environment.yaml.
  • The maintainers recommend Linux with an Nvidia GPU and report around 14 GB of GPU memory; other configurations have not been tested.

Steps

  1. Create the environment with conda env create -f environment.yaml.

  2. Activate it with conda activate dragdiff.

  3. Start the interface with the command below.

    Documented command
    python3 drag_ui.py

Expected outcome

The README’s local Gradio interface is started for the documented image-generation and point-editing workflows.

Guide limitations

  • The project recommends Nvidia GPU hardware on Linux and says it requires around 14 GB of GPU memory.
  • The maintainers had not tested other configurations.
Source-based practical guide

Edit an input image with mask and point controls

Use the interface workflow to guide an edit to an input real image.

Before you start

  • The Dragdiffusion interface started locally.
  • An input image and a prompt describing it.

Steps

  1. Load the input image and enter its descriptive prompt.

  2. Use the interface’s Train LoRA control to train a LoRA for the image.

  3. Draw a mask over the editable area.

  4. Set handle and target points, then run the algorithm to display the edited result.

Expected outcome

The interface displays an edited result guided by the selected mask and points.

Guide limitations

  • This recipe follows the documented input-image workflow; the project recommends Linux with an Nvidia GPU and around 14 GB GPU memory.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
15 October 2026
Original website title
Yujun-Shi/DragDiffusion · Official homepage title · retained in its source language