/ Модель

Характеристики

Лицензия
Apache 2.0
Архитектура
siglip · dense
Библиотека
transformers
Опубликована
29 авг 2026

garment-attributes-v2

Классификация изображенийИзображение → label3 профессии

Модель SigLIP2-base определяет атрибуты одежды и её частей на плотных кропах изображений.

127скачиваний за 30 дней3лайкавеса обновлены29 авг 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

resoa/garment-attributes-v2 — модель resoa для многометочной классификации 218 атрибутов одежды и её частей по отдельному изображению-кропу. Она использует визуальный энкодер SigLIP2-base с классификационной головой и содержит 93,1 млн параметров. Модель обучена на 156 937 кропах Fashionpedia; увеличение отступа вокруг объекта и случайный масштабный джиттер при обучении улучшили макро-mAP относительно предыдущей версии.

Модель предназначена для анализа достаточно плотных кропов одежды на фотографиях, например для каталогизации атрибутов изделий. На Fashionpedia val2020 она показала макро-mAP 0,485 при отступе 25% и micro-F1 0,7244. Выходы sigmoid не откалиброваны и не являются вероятностями. Модель плохо работает на целых сценах и фотографиях уличной моды; плоские раскладки и заводские снимки находятся вне обучающего домена. Мелкие детали и редкие атрибуты распознаются хуже; отдельные классы регрессировали относительно v1. Модель не определяет состав волокон, плотность ткани, размеры или цвет. Лицензия — Apache-2.0.

Сценарии применения

  • многометочная разметка атрибутов одежды в каталоге
  • определение типа воротника, рукавов и карманов на кропе изделия
  • поиск одежды по визуальным характеристикам Fashionpedia
  • автоматическая проверка и обогащение тегов карточек одежды

Ограничения

Модель рассчитана на плотно обрезанные изображения одежды: на целых сценах качество резко падает, а плоские раскладки и заводские фото находятся вне обучающего домена. Выходы не откалиброваны; редкие атрибуты и мелкие детали распознаются хуже, а цвет, состав ткани и размеры модель не определяет.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

garment-attributes-v2

Same architecture, same label space, same hyperparameters as resoa/garment-attributes — retrained with crop-scale augmentation. +11.4% relative macro-mAP.

218 Fashionpedia construction attributes from a garment crop. SigLIP2-base vision encoder with a classification head, 93.1M parameters.

What changed, and what actually caused the gain

v1 trained on crops padded 8% around the bounding box. v2 trains at 25% padding with ±10% random jitter, plus horizontal flip. Nothing else differs — same optimiser, LR, schedule, batch size, epoch count and label space.

Both changes were ablated separately, because the experiment was designed around padding and it turned out not to be the main effect (Fashionpedia val2020, 3,711 instances, bootstrap 400 resamples):

changeΔ macro-mAPP(better)
padding 0.08 → 0.25 alone+0.0191 ± 0.00611.00
jitter 0.0 → 0.10 alone+0.0302 ± 0.00491.00
both together+0.0492 ± 0.00621.00

Scale jitter contributed 61% of the improvement and the padding value only 39% — so this model is best understood as v1 trained with crop-scale augmentation, not as v1 trained at better padding. The mechanism is visible in the per-padding table below: a model trained at a fixed 0.25 scores worse than v1 when evaluated at 0.08. Fixing the training scale buys accuracy at that scale and loses it elsewhere; jitter is what makes the model robust to how tightly you crop.

Results — Fashionpedia val2020, the parent's own protocol

3,711 instances, 212 evaluable labels, 48-pixel minimum crop.

evaluation paddingv1 macro-mAPv2 macro-mAP
0.080.42290.4592
0.250.43550.4850
0.500.38420.4647

Best-to-best: +0.0492 ± 0.0062, P(v2 better) = 1.00. micro-F1 0.7006 → 0.7244. v2 wins at every padding, so it has not merely shifted its preferred operating point.

The gain lands where v1 was weakest

172 of 212 labels improved, 40 regressed. Grouped by training support:

training supportlabelsmean Δ AP
100–30051+0.0834
300–1,00073+0.0442
1,000–5,00056+0.0424
5,000+32+0.0197

The improvement is inversely proportional to how much data an attribute had — augmentation helps most exactly where examples are scarcest. Largest gains: sleeveless 0.267→0.833, teddy bear (coat) 0.279→0.722, raglan (t-shirt) 0.093→0.385.

Regressions are real and reported. tuxedo (jacket) fell 1.000→0.200, though with very few val positives its AP is unstable in both directions; collarless 0.688→0.511, banded (collar) 0.307→0.198. Per-attribute v1/v2 numbers ship in per_attribute_v2.json so you can check the attributes you care about rather than trusting the mean.

Measurement honesty

This harness reproduces the parent's protocol exactly — 3,711 instances and 212 labels, matching the published counts — but scores v1 at 0.4229 macro-mAP against the published 0.4417, a ~2% shortfall most likely from crop-rounding or resize detail. Every comparison above is v1 and v2 measured by the same harness, so that offset cancels. Read the absolute numbers as ~2% low and the deltas as sound.

Usage

Identical to v1 — drop-in replacement.

from transformers import AutoImageProcessor, AutoModelForImageClassification
import torch
from PIL import Image

model = AutoModelForImageClassification.from_pretrained("resoa/garment-attributes-v2")
proc = AutoImageProcessor.from_pretrained("resoa/garment-attributes-v2")
img = Image.open("garment_crop.jpg")          # crop of ONE garment or garment part
probs = torch.sigmoid(model(**proc(images=img, return_tensors="pt")).logits)[0]
for i, p in enumerate(probs):
    if p > 0.5:
        print(model.config.id2label[i], round(p.item(), 3))

Crop at ~25% padding around the garment for best results. v2 is markedly more forgiving of looser crops than v1 (0.4647 vs 0.3842 at 0.50 padding), which is the practical benefit of the jitter.

Inherited limitations

Everything true of v1 remains true, and the training change fixes none of it:

  • Not calibrated. Sigmoid outputs are not probabilities.
  • Crops, not scenes. A full scene retains only ~14% of trained-crop mAP. See resoa/garment-crop-gate-nano, a 47K-param gate that declines inputs too loosely cropped to trust.
  • Worn-garment street photography. Flat-lay and factory photos are out of domain.
  • The label space spans garments AND garment parts. Fashionpedia annotates sleeves, pockets, collars and lapels as separate instances — a welt (pocket) label was learned from crops of pockets at ~0.3% of the source frame, not from whole garments containing pockets. nickname attributes never co-occur (mean 1.012 per instance) for the same reason.
  • Cannot predict fibre content, GSM, measurements or colour.

Training

156,937 crops from Fashionpedia train2020 (≥100 training instances per attribute, 48-pixel minimum crop), 4 epochs, batch 32, AdamW lr 2e-5, cosine schedule, bf16. 1.68 hours on a Jetson AGX Orin.

Does it beat a trivial baseline?

Every nano model in this line is required to beat the best of ten cheap image statistics before it ships — a rule that has killed several candidates. That rule was never applied to this 93M model until a card audit noticed the omission. Measured on a held-out half of Fashionpedia val2020, 204 evaluable attributes:

methodmacro-mAP
prevalence (chance)0.0243
best single cheap statistic0.0662
linear over 13 cheap features (2.8K params)0.0484
this model (93.1M params)0.5048

Margin +0.4386 — 7.6× the cheap baseline. The model earns its parameters, which is not something to assume: three candidate models in this programme lost outright to a single threshold.

Known failure modes, measured

  • Small features are not resolvable. 19 of 202 attributes have a diagnostic feature under 2 pixels at this input size; metal (5 mm) scores AP 0.072 despite 1,135 training examples, and bead(a) 0.133 despite 2,030. No amount of data fixes a one-pixel feature.
  • Rare attributes are weak. Mean AP 0.358 for attributes with 100–300 training instances against 0.770 above 5,000.
  • Loose crops collapse it. A full scene retains only 14% of trained-crop mAP.
  • Regressions from v1 exist and are shipped in per_attribute_v2.json — tuxedo (jacket) 1.000 → 0.200, collarless 0.688 → 0.511.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers · image-classification

Можно запустить

Подбираем GPU…

Класс архитектуры
SiglipForImageClassification
Ревизия весов
bb03c55

0 моделей