Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created README.md for clothes detection #767

Merged
merged 6 commits into from
Oct 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions preprocessors/clothes-detector/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Clothes Detection Preprocessor

This preprocessor detects the type of clothing of individual people in a photograph. The following are the steps performed by the preprocessor

1. We first crop individual people from the image, then detect the clothes worn by each individual. We have used YOLOv3 in the backend to detect and localise the clothes worn by each individual. The weights were obtained from [[another github repository](https://github.com/simaiden/Clothing-Detection)](https://github.com/simaiden/Clothing-Detection)
2. The localised clothes are further cropped to determine the color of those clothes. The cropped clothes are passed through a `webcolors` library, that provides the dominant color of the associated cloth.


The code to use this module as an API can be found in `clothes.py`. This module is fully versioned. The versions of the libraries used can be found in `requirements.txt`. The weights for the model and the procedure to convert the model to image could be found in `Dockerfile`.



## Installation

In order to use this module as an API, first build the image using :

```bash
docker build -t <image-name>
```

Then run the container with :

```bash
docker run -d --rm --gpus all -p <port>:5000 <image-name>
```