Coder Social home page Coder Social logo

aip490's Introduction

AIP490 - Virtual Shirt Fitting Model Based on Deep Learning and Computer Vision

Model's architecture

The figures below show the architecture of the model from the data preprocessing step to the main HR-VITON model we used in this project.

Main flow

Dataset

We train and evaluate our model using the dataset from High-Resolution Virtual Try-On with Misalignment and Occlusion-Handled Conditions, the original dataset was from VITON-HD: High-Resolution Virtual Try-On via Misalignment-Aware Normalization.

To download the datasets, please check the links below:

  • Author's dataset: link
  • Our preprocessed dataset: link

After you download the dataset, create a ./data folder and put it under.

If you want to know more about how we preprocess the data, please check the Preprocessing.md

Inference

Here are the download links for each model checkpoint:

  • Author's try-on condition generator: link
  • Our retrain 30000 steps try-on condition generator: link
  • Author's try-on image generator: link
  • We assume that you have obtained all the checkpoints and stored them in ./eval_models/weights/v0.1.

We've built a web app demo, please check the following notebook for detailed instructions Open In Colab

Train try-on condition generator

python train_condition.py --name test --cuda {True} --gpu_ids {gpu_ids} --dataroot {dataroot_path} --datamode train --data_list {path_to_trainpairs.txt} --keep_step 300000 --Ddownx2 --Ddropout --lasttvonly --interflowloss --occlusion

Train try-on image generator

python train_generator.py --cuda {True} --name test -b 4 -j 8 --gpu_ids {gpu_ids} --fp16 --tocg_checkpoint {condition generator ckpt path} --occlusion --dataroot {data_path}

To use "--fp16" option, you should install the apex library.

Acknowledgements

aip490's People

Contributors

ntad27 avatar

Watchers

 avatar

Forkers

tinaiworkspace

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.