Code Monkey home page Code Monkey logo

down-to-the-last-detail-virtual-try-on-with-detail-carving's Introduction

Down to the Last Detail: Virtual Try-on with Detail Carving

Code for virtual try-on with high-fidelity details. The code was developed and tested with Pytorch0.4.1.

Virtual try-on results

Getting Started

Installation

  • Clone this repo
git clone https://github.com/AIprogrammer/Detailed-virtual-try-on.git. 
cd Detailed-virtual-try-on
  • Download our pretrained models from Google Drive, and put them in "./pretrained_checkpoint".

Demo

  • We provide a demo model, as well as some samples in "./dataset/images". Triplets including source image, target pose, target cloth is provided in the "./demo/demo.txt".
  • Quick testing and checking results in "./demo/forward/0.jpg" by running
sh demo.sh

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 "GrabCut" method for the cloth mask, and put the mask in "./dataset/cloth_mask".

Coarse-to-fine training

  • Download the VGG19 pretrained checkpoint
cd vgg_model/
wget https://download.pytorch.org/models/vgg19-dcbb9e9d.pth
  • Set different configuration based on the "config.py". Then run
sh train.sh

Citation

If you find this code helpful, please cite our paper:

@inproceedings{detail2019,
  title={Down to the Last Detail: Virtual Try-on with Detail Carving},
  author={Wang, Jiahang and Zhang, Wei and Weizhong, Liu and Mei, Tao},
  booktitle = {arXiv:1912.06324},
  year={2019}
}

down-to-the-last-detail-virtual-try-on-with-detail-carving's People

Contributors

aiprogrammer avatar wzhang34 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.