The objective is to transfer garments across images of people with arbitrary body pose, shape and clothing.
Garment transfer is a challenging task that requires
- disentangling the features of the clothing from the body pose and shape.
- realistic synthesis of the garment texture on the new body.
You can Checkout project report's pdf here
- Clone this repo or download the zip file.
- Ensure you have Python3 and pip already installed on your system.
- Navigate to VIRTUON/model_deployment
- Setup virtual environment
- In Linux
- Run the following commands in terminal
pip3 install virtualenv
virtualenv venv
source venv/bin/activate
- In Windows CMD
- Run the following commands in cmd.exe
python3 -m pip3 install virtualenv
python3 -m virtualenv venv
venv\Scripts\activate.bat
- In Windows PowerShell
- Run the following commands in PowerShell.exe
Note: By default, external script execution is disabled in Powershell.
For more details refer here.
python3 -m pip3 install virtualenv
python3 -m virtualenv venv
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
venv\Scripts\Activate.ps1
Note : To deactivate the Virtual Enviorment use
deactivate
command.
For more detials about Virtual Enviroments in Python checkout this.
- Install the dependencies
- Note you should be in model_deployment folder and ensure requirements.txt exist.
- Run the following command
pip3 install -r requirements.txt
Note: This will take a while. It will be of approx. 850MB
- Starting the server
- When starting it for first time, run the following command.
python3 manage.py migrate
- Now run
python3 manage.py runserver
- Copy and paste this address in your browser
http://127.0.0.1:8000/
- Tryon :)
- Ensure you have Docker installed properly. If not refer this.
- Run the following command to pull the image. Link to the Docker image.
docker pull pra17dod/virtuon
- After successfully pulling the image. Run the image.
docker run -it --name virtuon -p 8000:8000 pra17dod/virtuon
- Your server is up and running. To know more about Docker.
- Copy and paste this address in your browser
http://0.0.0.0:8000/
- Tryon :)