Skip to content

yesusbc/FittingRoom-With-AI

Repository files navigation

FittingRoom-with-AI

Tool to try on different t-shirts, using pose estimation with the OpenVINO toolkit

This project was made for the Intel® Edge AI Scholarship Foundation Course Nanodegree Program.

Getting Started

For running the app you must have the OpenVINO toolkit downloaded.

Inside your workspace directory you must have a tree like this one:

├── app.py
├── helper.py
├── image (Input images, yours and the different t-shirts you want to try on)
│   ├── human.jpeg
│   ├── tshirt1.jpg
│   └── tshirt2.jpg
├── inference.py
├── intel
│   └── human-pose-estimation-0001 (The human pose models)
│   ├── FP16
│   │   ├── human-pose-estimation-0001.bin
│   │   └── human-pose-estimation-0001.xml
│   ├── FP32
│   │   ├── human-pose-estimation-0001.bin
│   │   └── human-pose-estimation-0001.xml
│   └── FP32-INT8
│   ├── human-pose-estimation-0001.bin
│   └── human-pose-estimation-0001.xml
├── outputs
│   ├── (Images with your t-shirt putted on)
│   └── tshirt_try_on.png
└── t_shirt_coords.py

About the files:

  • App.py contains the main operations (Human pose estimation, and combination with the tshirt)
  • t_shirt_coords.py is for getting the important coordinates of the t-shirt
  • inference.py is for working with the inference engine
  • helper.py are helper functions for working with the pse estimation

Prerequisites

  • OpenVINO toolkit
  • Image of the Model
  • Image of the t-shirt/polo/etc

Model

Image of the t-shirt2

Image of the t-shirt2

Installing

OpenVINO toolkit https://software.intel.com/en-us/openvino-toolkit/choose-download?

Running the tests

To test your implementations, you can use app.py to run each edge application, with the following arguments:

  • -m: The location of the model .xml file
  • -i: The location of the input image (model) used for testing
  • -s: The location of the input image (t-shirt) used for testing
  • -c (optional): A CPU extension file, if applicable. See below for what this is for the workspace. The results of your output will be saved down for viewing in the outputs directory.

As an example, here is an example of running the app with related arguments

python app.py -i "image/human.jpeg" -m "intel/human-pose-estimation-0001/FP32/human-pose-estimation-0001.xml" -s "image/tshirt.jpg"

Image of the result

Image of the result2

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Tool to try on different t-shirts, using pose estimation with the OpenVINO toolkit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages