DragGAN AI is a powerful AI editing tool that allows users to change photos with ease using a unique dragging and dropping interface. This new tool is the outcome of a cooperation between Google, the Max Planck Institute for Informatics, and MIT CSAIL researchers.
DragGAN, which is based on the backbone of a powerful deep learning algorithm known as a generative adversarial network (GAN), uses cutting-edge technology to produce realistic pictures depending on user input. GANs are a form of machine learning algorithm that is well-known for its capacity to generate very real images by learning from a curated dataset.
DragGAN AI editing Tool is simple to use. Users may quickly upload an image and then edit it interactively using the straightforward drag-and-drop capabilities. DragGAN produces a new version that includes the user’s desired modifications smoothly by just dragging points on the picture.
DragGAN has a wide range of tools that allow users to edit photos in a variety of ways. Some the most important capabilities are:
- Change the size and shape of objects within an image.
- Objects can be added or removed from a picture.
- Changing the color of objects present in an image.
- Text inside an image can be included or removed.
DragGAN Official has immense potential as a powerful photo editing tool. DragGAN AI editing Tool has the potential to transform a variety of fields, including marketing, advertising, and education, by enabling the generation of extremely realistic and personalized images for a variety of purposes.
Features of DragGAN Photo Editor
DragGAN is a cutting-edge technology that provides interactive point-based picture alteration. This advanced application has a number of capabilities that take picture editing to a whole new level.
Excellent Control: With DragGAN AI editing Tool, users have fine control over picture distortion. Instead of making wide and inaccurate adjustments, this technology allows users to edit pixels with pinpoint accuracy, assuring the intended effect.
Versatility: DragGAN’s versatility is remarkable. It enables users to change photos in a variety of ways, including changing postures, shapes, emotions, and layouts. Because of its flexibility, it is an excellent tool for a wide range of picture editing jobs.
Efficiency: When it comes to picture editing, time is of the essence, and DragGAN shines in this aspect. It works quickly, frequently needing only a few seconds to modify a picture. This efficiency guarantees that users’ editing chores are completed efficiently and effectively.
High Accuracy: Realistic results are critical in image editing, and DragGAN excels at this. It excels in difficult conditions such as generating content for obscured areas and deforming forms while maintaining object stiffness. This high degree of precision makes it a reliable tool for applications that need exact and lifelike visual changes.
Also Read DragGAN: The AI-Powered Image Editing Tool That Makes Editing Images Easy
Download DragGAN AI Editing Tool
DragGAN source code is launched officially and available for download publically.
How to Install and Use DragGAN AI Editing Tool – Ubuntu
In this tutorial, we will show you how to install and execute DragGAN AI code using a the official source code available in GitHub version on Ubuntu 22.04 server with Tesla T4 GPU, 2vCPU 7.5GB RAM, 50 GB disk space, secure boot disabled on Google Cloud.
This DragGAN AI Editing Tool setup is tested on Google cloud with the above mentioned configurations. If you wish to have a different GPU then you can install the appropriate Nvidia driver for your GPU.
Configure Server for DragGAN on Ubuntu 22.04
Follow the below article to setup Deep Learning Architecture with Nvidia, CUDA, cuDNN and Anaconda 3 prior to install DragGAN editing tool.
Prerequisite
Setup Deep Learning Architecture with Nvidia, Cuda, cuDNN, Anaconda
Just follow the steps until to install Anaconda3. You don’t have to install TensorFlow or PyTorch. We shall install all necessary Python packages as mentioned below.
Pull GitHub Repository
Now you can pull the repository from GitHub using the git clone command.
git clone https://github.com/XingangPan/DragGAN.git
Navigate inside the directory.
cd DragGAN
Create Conda Environment
Now you can create Anaconda environment and start installing the packages.
conda env create python=3.7 -f environment.yml conda activate stylegan3 pip install -r requirements.txt
This will take sometime to download all required packages. Wait for the installation to complete.
Launch DragGAN
Once the installation is complete you can execute the below command to launch DragGAN Web GUI using the below command
sh scripts/gui.sh
You can also launch DragGAN demo in Gradio to play around using the below command.
python visualizer_drag_gradio.py
Gradio runs on port 7860 [http://localhost:7860]. Either you can create a firewall to open this port or configure Nginx reverse proxy, so that you can open it in your browser without the port.
Nginx Configuration for Gradio (Optional)
Here you will find how to configure Nginx reverse proxy to launch Gradio in your web browser without port. You can also configure domain name and install SSL if needed.
Execute the below command to install Nginx.
sudo apt install nginx
Remove default Nginx configurations.
sudo rm -rf /etc/nginx/sites-enabled/default sudo rm -rf /etc/nginx/sites-available/default
Create new Nginx configuration for DragGAN.
sudo nano /etc/nginx/sites-available/draggan.conf
Copy and paste the code in the editor.
server { listen [::]:80; listen 80; server_name YOUR_EXTERNAL_IP; location / { proxy_pass http://localhost:7860; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection ‘upgrade’; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } }
Replace YOUR_EXTERNAL_IP with your IP or your domain name.
Enabled DragGAN Nignx configuration.
sudo ln -s /etc/nginx/sites-available/draggan.conf /etc/nginx/sites-enabled/draggan.conf
Check Nginx configuration.
sudo nginx -t
Restart Nignx for the DragGAN configuration to take effect.
sudo service nginx restart
Now you can open your DragGAN editor on your web browser on your IP or your domain name.
This article is to help you learn to setup DragGAN AI editing Tool on Ubuntu 22.04. We trust that it has been helpful to you. Please feel free to share your thoughts and feedback in the comment section below.
DragGAN AI Editing Tool Install and Use DragGAN Photo Editor