Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,12 +1,22 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 5.45.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Fashion Category Classifier
|
| 3 |
+
emoji: ⚡
|
| 4 |
+
colorFrom: pink
|
| 5 |
+
colorTo: blue
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 5.45.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# 👗 Fashion Category Classifier
|
| 13 |
+
|
| 14 |
+
A Hugging Face Space that uses specialized AI models to accurately classify clothing items from images. It first isolates the garment using segmentation to avoid background noise, then performs fine-grained classification using a model trained on fashion data.
|
| 15 |
+
|
| 16 |
+
## How it Works
|
| 17 |
+
|
| 18 |
+
1. **Segmentation**: The image is processed by a `SegFormer` model fine-tuned on clothing segmentation (`mattmdjaga/segformer_b2_clothes`). This model identifies and creates a precise mask around the main clothing item.
|
| 19 |
+
2. **Isolation**: The image is cropped to this mask, removing any distracting background.
|
| 20 |
+
3. **Classification**: The isolated garment is analyzed by a FashionCLIP model (`edwardjross/fashion-clip`), which compares it to a detailed list of fashion categories to find the best match.
|
| 21 |
+
|
| 22 |
+
This two-step process significantly reduces "hallucinations" and improves accuracy.
|