Tuesday, July 4, 2023

Installing DragGan on Linux Locally

 Following are step by step commands to install DragGan locally on your Linux terminal in AWS sagemaker notebook:



Step 1: Clone the repo.

git clone https://github.com/XingangPan/DragGAN.git


Step 2: Change Directory

cd DragGAN


Step 3: Make changes to environment.yml file:


In environment.yml file:

-- CHANGE CODETOOLKIT TO 11.3.1

-- and move scipy=1.11.0 to pip section and make sure its in this format : scipy==1.11.0


Step 4: Create Conda environment

conda env create -f environment.yml


Step 5: Activiate Conda environment

conda activate stylegan3


Step 6: Install all requirements 

pip install -r requirements.txt


Step 7: Download the models

python scripts/download_model.py => This takes a while 


Step 8: Start the GUI

python visualizer_drag_gradio.py 


Step 9: Open in Browser


For sagemaker notebook:

https://test-7o9z.notebook.ap-southeast-2.sagemaker.aws/proxy/7860/ 


For Localhost / gitbash:


http://127.0.0.1:7860


Github repo: https://github.com/XingangPan/DragGAN

No comments: