Downloads · 30 days
10
18% of all-time downloads
mohsin416/fashion-attribute-lab
fashion-attribute-lab is a image classification model from mohsin416. Use it when you need a label for an image. It is set up for transformers.
Fashion Attribute Lab is an experimental multi-task computer-vision checkpoint for fashion product attribute extraction.
Downloads · 30 days
10
18% of all-time downloads
All-time downloads
56
Public
Repo size
613 MB
Likes
0
Public
Click a slice to open those files.
.pt613 MB · 100%
From the Hugging Face model README
Fashion Attribute Lab is an experimental multi-task computer-vision checkpoint for fashion product attribute extraction.
The model predicts seven attributes from a product image:
This repository contains an experimental checkpoint, not the primary production model.
The experiment investigates whether spatial colour features, mild class balancing, test-time augmentation, and validation-tuned consistency thresholds can improve an already strong fashion attribute classifier.
The model uses:
ashraq/fashion-product-images-small
| Split | Percentage |
|---|---|
| Training | 70% |
| Validation | 15% |
| Test | 15% |
The held-out test set contains 6,611 images.
| Metric | Result |
|---|---|
| Average Accuracy | 87.87% |
| Average Macro F1 | 67.94% |
| Average Weighted F1 | 87.47% |
| Average Top-3 Accuracy | 98.13% |
| Exact-Match Accuracy | 41.75% |
| Test Samples | 6,611 |
Exact-match accuracy requires all seven attributes to be correct for the same image.
| Attribute | Accuracy | Macro F1 | Weighted F1 | Top-3 Accuracy |
|---|---|---|---|---|
| Gender | 91.98% | 81.11% | 91.79% | 99.76% |
| Master Category | 99.56% | 86.59% | 99.47% | 99.94% |
| Subcategory | 96.58% | 76.25% | 96.41% | 99.71% |
| Article Type | 88.49% | 66.56% | 87.81% | 98.12% |
| Base Colour | 70.29% | 37.05% | 69.05% | 90.55% |
| Season | 76.06% | 77.31% | 75.92% | 99.02% |
| Usage | 92.10% | 50.74% | 91.83% | 99.83% |
The following metrics were calculated before consistency correction.
| Metric | Result |
|---|---|
| Average Accuracy | 87.84% |
| Average Macro F1 | 67.61% |
| Average Weighted F1 | 87.45% |
| Average Top-3 Accuracy | 98.13% |
| Exact-Match Accuracy | 41.48% |
Raw and corrected metrics are reported separately for transparency.
TrueThis experimental checkpoint achieved measurable but relatively small gains over the existing production checkpoint.
The simpler production model was retained because it provides nearly equivalent predictive performance with:
This repository is preserved as an optimization experiment and reproducible research checkpoint.
model.pt
config.json
label_maps.json
consistency_rules.json
consistency_thresholds.json
metrics.json
README.md
This repository contains a custom PyTorch architecture and cannot be loaded directly with AutoModelForImageClassification.from_pretrained().
The project implementation must:
config.jsonlabel_maps.jsonAutoCatalogFinalClassifiermodel.ptThis checkpoint is intended for:
The gender label represents the dataset's product-target category, not the gender of a person.
Name: AutoCatalogAI
Version: spatial-tta-experiment
Role: Experimental checkpoint
Architecture: AutoCatalogFinalClassifier
Base encoder: openai/clip-vit-base-patch32
TTA: True
Test samples: 6,611