Jen-Vu / Deep-Virtual-Try-On

Deep virtual try on implemented on Flask RESTful API and Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Worlds first API for Deep Virtual Try On and android implementation

made-with-python license Open In Colab

Demo

Google colab link: https://colab.research.google.com/drive/1rlk-nOgIJa14UDNQLJyRxh3McoRLo3b0?usp=sharing

API

alt text

Android Application

alt text

Results

alt text alt text alt text alt text alt text

Training

Download the dataset

Download the MPV dataset from Image-based Multi-pose Virtual Try On and put the dataset under "./dataset/images/".

Select postive perspective images, create dataset split file 'data_pair.txt', and put it under "./dataset/".

Dataset preprocessing

Pose keypoints. Use the Openpose, and put the keypoints file in "./dataset/pose_coco".

Semantic parsing. Use the CIHP_PGN, and put the parsing results in "./dataset/parse_cihp".

Cloth mask. Use the removebg api or holistically-nested-edge-detection for the cloth mask, and put the mask in "./dataset/cloth_mask".

Coarse-to-fine training

Download the VGG19 pretrained checkpoint

cd vgg_model/

Set different configuration based on the "config.py". Then run

sh train.sh

Reference

About

Deep virtual try on implemented on Flask RESTful API and Android

License:MIT License


Languages

Language:Python 66.2%Language:Jupyter Notebook 29.9%Language:MATLAB 2.4%Language:HTML 1.0%Language:CSS 0.3%Language:Shell 0.2%