Giter Club home page Giter Club logo

smartfit's Introduction

A virtual fitting room service for e-commerce!

Important Note

This repository is for demo purposes only and runs a publicly available clothing transfer model, which does not include all improvements. Correspondingly, some functionality may be missing.

Requisites

Setup

First clone the repository:

git clone https://github.com/RohanBhandari/SmartFit.git
cd SmartFit

Next, run source setup.sh, which will create a conda environment and install the required packages via

conda create --name smartfit python=2.7 pip
source activate smartfit
pip install -r requirements.txt

Additionally, setup.sh will clone and setup auxiliary repositories that do the human parsing, pose estimation, and clothing transfer steps. This process will download pre-trained models for each of the tasks.

Test Example

To test whether the setup was successful, run the following command that should reproduce the clothing transfer shown at the top of the README:

./run_smartfit.sh inputs/example_person.jpg inputs/example_clothing.jpg

The corresponding output is output/output.png and should be similar to output/example_output.png (the right-most image above).

Notebooks

This repo includes some jupyter notebooks (located in notebooks/) that may be useful for understanding the SmartFit pipeline and its inputs/outputs. Exact usage instructions are at the top of each notebook.

  • visualize_inputs.ipynb
    • Explains and shows the main inputs to the clothing transfer model: body mask, face and pants, keypoint pose map, and clothing item.
  • visualize_output.ipynb
    • Displays the output image.
  • skintone_check.ipynb
    • Describes how the skintone check works. This is a check to make sure that the clothing transfer model did not change the skintone of the inputted person.

References

This project builds from the work listed below:

smartfit's People

Contributors

rohanbhandari avatar

Watchers

James Cloos 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.