How to Install DragGAN AI on Windows


The installation of DragGAN AI on a Windows operating system may initially appear to be a challenging endeavor. However, with the proper guidance, one can swiftly and efficiently complete the process. Within the confines of this article, we shall provide you with a comprehensive walkthrough of the installation process, encompassing the necessary software and the sequential actions you need to take to download and install DragGAN AI. Without further ado, let us commence our examination.


- Windows 10 + Visual Studio Community Edition.

- Advanced GPU-RTX 3060 Ti GPU Server from GPUMart.

- NVIDIA GPUs with 8GB+ RAM. Recommend Nvidia A40、Tesla V100 and GeForce RTX 4090 GPUs.

- CUDA toolkit 11.8.

Useful Links

How to Install DragGAN on Windows

Step 1. Install Visual Studio

Open the Microsoft VS download link:, click the download button, download the installer to the local computer and double-click to install, check Python development, desktop development using C++ and Windows 10SDK on the right, pay attention to your hard disk capacity, click the install button in the lower right corner to install vs.

install visual studio

Step 2. Install Git and Conda

Before we can proceed with the installation, there are a few software packages we need to have on our system: Conda, Git. Please go to the respective software official website to download and install.

Step 3. Install Nvidia CUDA 11.8

Now, we need to install Nvidia CUDA. Please note that DragGAN is currently compatible with CUDA 11.8. If you have a different version installed, you’ll need to remove it before proceeding.

- Visit the Nvidia developer website and download the CUDA 11.8 toolkit.
- Select the appropriate version for your Windows system (e.g., Windows 10).
- Scroll down the page and download the CUDA toolkit installation program.
- Save the installation program to a location of your choice.

download cuda 11.8
install cuda 11.8

Step 4. Download and install the DragGAN

Take installation on disk D as an example, enter cmd in the address bar of disk D, press Enter, start the terminal, enter the following command in the terminal, and press Enter

git clone

Step 5. Create DragGAN Runtime Env

The usual installation steps involve the following commands, they should set up the correct CUDA version and all the python packages

conda env create -f environment.yml
conda activate stylegan3

Then install the additional requirements

pip install -r requirements.txt
pip install requirements

Step 6. Download pre-trained StyleGAN2 weights

To download pre-trained weights, simply run:

python scripts/
download stylegan2 weights

The program will automatically download 8 models to the checkpoints folder. If there is no checkpoints folder, you can manually create one.

Step 7. Run DragGAN GUI

To start the DragGAN GUI, simply run:

sh scripts/

If you are using windows, you can run:

run draggan gui

DragGAN Tutorial

This will open the DragGAN user interface for Windows. Please note that the initial loading of the model may take some time. Once the graphics appear, you can start using DragGAN.

draggan tutorial

The function of the operation interface is relatively simple, as shown in the figure above, click add point, click the area you want to change on the picture, and then click start to start adjusting the picture. Click save image to save the modified picture. Note: This software still has high requirements for the computer graphics card. If your GPU card configuration is low, please do not use the 1024 model, otherwise it will be stuck at the beginning, and you can only use the small size model.

draggan tutorial 2


Congratulations! You’ve successfully installed DragGAN AI on your Windows system. Now you can explore the possibilities offered by this powerful AI tool. Have fun generating stunning and imaginative images with DragGAN!

If you do not have a suitable GPU server, you can go to GPUMart dedicated GPU Servers to apply for a trial. We recommend Nvidia A40, Tesla V100 and GeForce RTX 4090 GPUs.

Related Articles