Skip to content

ismailkattar/Bulk-Upload-Clothes-Segmentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bulk Upload Clothes Segmentation

Introduction

Ever struggled with the daily question, "What should I wear?". This project focuses on the initial step towards building a personalized AI-powered wardrobe. By utilizing Instance Segmentation, a computer vision technique, our model can extract and classify itmes from images. This foundation lays the groundwork for the future developments, such as personalized outfit recommendations.

Result

Data

For Training, different number of images were used from Fashionpedia. In order to reduce the complex structure of the dataset, half of the categories were dropped(23 out of 46) and the remaining categories are:

+---------+-----------------------------------------+----------------+
| ClassId |                   Name                  | SuperCategory  |
+---------+-----------------------------------------+----------------+
|    0    |                   shoe                  | legs and feet  |
|    1    |                  dress                  |   wholebody    |
|    2    |         top, t-shirt, sweatshirt        |   upperbody    |
|    3    |                  pants                  |   lowerbody    |
|    4    |                  jacket                 |   upperbody    |
|    5    |               bag, wallet               |     others     |
|    6    |                   belt                  |     waist      |
|    7    |              shirt, blouse              |   upperbody    |
|    8    |                  skirt                  |   lowerbody    |
|    9    |                 glasses                 |      head      |
|    10   |            tights, stockings            | legs and feet  |
|    11   | headband, head covering, hair accessory |      head      |
|    12   |                  watch                  | arms and hands |
|    13   |                   coat                  |   wholebody    |
|    14   |                  shorts                 |   lowerbody    |
|    15   |                   hat                   |      head      |
|    16   |                 sweater                 |   upperbody    |
|    17   |                  scarf                  |     others     |
|    18   |                 cardigan                |   upperbody    |
|    19   |                 jumpsuit                |   wholebody    |
|    20   |                   vest                  |   upperbody    |
|    21   |                   cape                  |   wholebody    |
|    22   |                leg warmer               | legs and feet  |
+---------+-----------------------------------------+----------------+

For more details about the original dataset: iMaterialists (Fashion) 2020 FGVC7 and Fashionpedia.

Training Details

image

Since our case need an accurate model with high speed and YOLOv8-seg architecture has proven to contain both. In this study, 3 different training runs with YOLOv8s-seg has been conducted:

**Note** : For segmentation, YOLOv8 consist of five detection modules instead of 3.

Results

Here are some visual and numerical validation results:

Numerical Result

Run seg_loss cls_loss Precision(M) Recall(M) mAP50(M)
First 1.78 1.59 0.53 0.39 0.41
Second 1.67 1.49 0.53 0.32 0.31
Last 1.61 1.29 0.56 0.46 0.46

Visual Results

Prediciton using First Run

Result

Prediciton using Second Run

Result

Prediciton using Last Run

Result

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published