Code Monkey home page Code Monkey logo

virtualfittingroom's Introduction

VirtualFittingRoom

Poster of this project was graded 100/100 by cs231n(spring semester 2019) of Stanford University.

Introduction

Given a portrait picture, the goal of our project is to replace the texture and style of any piece of attire with new texture or style based on the user's choice. For instance, by feeding one portrait image with selections of target textures either predetermined or from another image, our application will change the textures or styles of certain fashion items respectively: pants texture will be transferred from canvas to jeans; coat texture will be transferred from cotton to leather.Thus we can adopt different combinations in different scenarios depending on the input image: day or night; indoor or outdoor with different body poses.

Demo files to train and test (Fashion) ModaNet data using Mask-RCNN

See page at: https://github.com/jiechen2358/VirtualFittingRoom/blob/master/mask_rcnn/samples/fashion/, which including:

  • Instructions on how to perform training and testing.
  • A sample script to perform training and testing.
  • A sample Jupyter notebook to demo how to train model.
  • A sample Jupyter notebook to demo how to load pretrained model and perform test.
  • Test 100 images.ipynb, test on 100 images and achieve > 73% mAP with IoU set to 0.5.
  • A Jupyter notebook demos how to only visualize colored masks from the result.

Dataset

  • The raw image data comes from PaperDoll dataset - a collection of images of street-fashion models.
  • Annotations are provideded by eBay's ModaNet - a dateset labels the subset of PaperDoll. The labels include bounding boxes, segmentations of 13 categories, including bag, belt, boots, top, shorts, scarf, tie etc. The labels are formmated in COCO style.

Project and Data Setup:

Prerequisites

Python 3, TensorFlow >= 1.3, Keras >= 2.0.8 and other packages listed in requirements.txt:

  numpy scipy Pillow cython matplotlib scikit-image tensorflow keras opencv-python h5py imgaug 

Install LMDB and pandas:

  pip install lmdb pandas

pycocotools

Install pycocotools from one of these repos. They are forks of the original pycocotools with fixes for Python3 and Windows (the official repo doesn't seem to be active anymore).

* Linux: https://github.com/waleedka/coco
* Windows: https://github.com/philferriere/cocoapi.
You must have the Visual C++ 2015 build tools on your path (see the repo for additional details)

For Linux, you can also simply try following commands:

  pip install cython pycocotools

Reference

virtualfittingroom's People

Contributors

jiechen2358 avatar junwenbu avatar zhilinghuang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.