Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
6.3.0
metadata
title: Fashion Category Classifier
emoji: ⚡
colorFrom: pink
colorTo: blue
sdk: gradio
sdk_version: 5.45.0
app_file: app.py
pinned: false
👗 Fashion Category Classifier
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.
How it Works
- Segmentation: The image is processed by a
SegFormermodel fine-tuned on clothing segmentation (mattmdjaga/segformer_b2_clothes). This model identifies and creates a precise mask around the main clothing item. - Isolation: The image is cropped to this mask, removing any distracting background.
- 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.
This two-step process significantly reduces "hallucinations" and improves accuracy.