Aller au contenu
ModelPrésentéExterne
Télécharger

Fashion Attribute Lab

Fashion Attribute Lab is an experimental multi-task computer-vision checkpoint for fashion product attribute extraction.

TypeOtherModèle de baseopenai/clip-vit-base-patch32VersionRevision 2456a34BClasse

Source du modèle

Type
Other
Taille du fichier
585 MB
Modèle de base
openai/clip-vit-base-patch32
Version
vRevision 2456a34
Mis à jour
2 nov. 2026
Téléchargements
8
Source
Hugging Face

Description de la source

Fashion Attribute Lab

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:

  • Gender
  • Master category
  • Subcategory
  • Article type
  • Base colour
  • Season
  • Usage

Model Status

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.

Architecture

The model uses:

  • CLIP ViT-B/32 image encoder
  • Seven task-specific classification heads
  • Global HSV and RGB colour statistics
  • Spatial colour-grid features
  • Hierarchical residual connections
  • Article-type-to-gender residual connection
  • Validation-selected test-time augmentation
  • Lightweight consistency correction

Dataset

ashraq/fashion-product-images-small

SplitPercentage
Training70%
Validation15%
Test15%

The held-out test set contains 6,611 images.

Corrected Test Metrics

MetricResult
Average Accuracy87.87%
Average Macro F167.94%
Average Weighted F187.47%
Average Top-3 Accuracy98.13%
Exact-Match Accuracy41.75%
Test Samples6,611

Exact-match accuracy requires all seven attributes to be correct for the same image.

Per-Attribute Results

AttributeAccuracyMacro F1Weighted F1Top-3 Accuracy
Gender91.98%81.11%91.79%99.76%
Master Category99.56%86.59%99.47%99.94%
Subcategory96.58%76.25%96.41%99.71%
Article Type88.49%66.56%87.81%98.12%
Base Colour70.29%37.05%69.05%90.55%
Season76.06%77.31%75.92%99.02%
Usage92.10%50.74%91.83%99.83%

Raw Model Metrics

The following metrics were calculated before consistency correction.

MetricResult
Average Accuracy87.84%
Average Macro F167.61%
Average Weighted F187.45%
Average Top-3 Accuracy98.13%
Exact-Match Accuracy41.48%

Raw and corrected metrics are reported separately for transparency.

Inference Configuration

  • Test-time augmentation enabled: True
  • Consistency thresholds selected using validation data only
  • Final test data was not used for threshold selection
  • Single-image average latency: 12.92 ms
  • Single-image P95 latency: 13.74 ms
  • Latency measured on an NVIDIA Tesla P100 GPU

Production Decision

This 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:

  • Lower inference latency
  • A simpler inference pipeline
  • Lower deployment complexity
  • Easier maintenance
  • Better alignment with the existing application

This repository is preserved as an optimization experiment and reproducible research checkpoint.

Repository Files

model.pt
config.json
label_maps.json
consistency_rules.json
consistency_thresholds.json
metrics.json
README.md

Loading

This repository contains a custom PyTorch architecture and cannot be loaded directly with AutoModelForImageClassification.from_pretrained().

The project implementation must:

  1. Load config.json
  2. Load label_maps.json
  3. Initialize AutoCatalogFinalClassifier
  4. Load model.pt
  5. Generate global and spatial colour features
  6. Apply TTA when enabled
  7. Optionally apply the saved consistency thresholds

Intended Use

This checkpoint is intended for:

  • Fashion attribute-classification experiments
  • Multi-task learning analysis
  • Colour-feature research
  • Test-time augmentation evaluation
  • Performance-versus-latency comparisons
  • Reproducible portfolio experimentation

Limitations

  • Rare colour and usage classes remain difficult
  • Base-colour labels may be visually ambiguous
  • TTA increases single-image inference latency
  • Performance may decrease on marketplace images outside the training distribution
  • Season and usage are not always directly visible from an image
  • The model is not intended to infer personal attributes about people

The gender label represents the dataset's product-target category, not the gender of a person.

Version

Name: AutoCatalogAI
Version: spatial-tta-experiment
Role: Experimental checkpoint
Architecture: AutoCatalogFinalClassifier
Base encoder: openai/clip-vit-base-patch32
TTA: True
Test samples: 6,611

Sources

1 source
Hugging FacePrincipalVersion 2456a34693a7ae0c22a12be9ba7303e47aac93dd
huggingface.co/mohsin416/fashion-attribute-lab/tree/2456a34693a7ae0c22a12be9ba7303e47aac93dd

Vérifié 2 nov.

Download files

Artefacts du modèle

1 artefact

model.pt

pt · 585 MB · SHA-256 c1d692652039…14f8 · Hugging Face

Download file

Extraits de sources

3 extraits

--- library_name: transformers pipeline_tag: image-classification base_model: openai/clip-vit-base-patch32 datasets: - ashraq/fashion-product-images-small tags: - clip - fashion - computer-vision - multi-task-learning - product-attribute-extraction - spatial-color-features - test-time-augmentation - hierarchical-classification - pytorch --- # Fashion Attribute Lab 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: - Gender - Master category - Subcategory - Article type - Base colour - Season - Usage ## Model Status 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. ## Architecture The model uses: - CLIP ViT-B/32 image encoder - Seven task-specific classification heads - Global HSV and RGB colour statistics - Spatial colour-grid features - Hierarchical residual connections - Article-type-to-gender residual connection - Validation-selected test-time augmentation - Lightweight consistency correction ## Dataset `ashraq/fashion-product-images-small` | Split | Percentage | |---|---:| | Training | 70% | | Validation | 15% | | Test | 15% | The held-out test set contains **6,611 images**. ## Corrected Test Metrics | 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. ## Per-Attribute Results | 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% | ## Raw Model Metrics The following metrics were calculated before consistency correction. | Metric...

Source context: 8 downloads · 0 likes · Pipeline image-classification · Library transformers · Repo mohsin416/fashion-attribute-lab

Source context: 6 downloads · 0 likes · Pipeline image-classification · Library transformers · Repo mohsin416/fashion-attribute-lab