Downloads · 30 days
0
resoa/garment-detector-seg
garment-detector-seg is a object detection model from resoa. Use it when you need objects located in an image. The card lists the license as apache-2.0.
Instance segmentation of garments, accessories, and garment components in photographs. RF-DETR-Seg (Apache 2.0) fine-tuned on Fashionpedia (CC BY 4.0), predicting all 46 Fashionpedia classes: 13 main garments (shirt/b…
Downloads · 30 days
0
Access
Public
Updated Aug 29, 2026
Repo size
134 MB
Likes
0
Public
Click a slice to open those files.
.pth134 MB · 100%
From the Hugging Face model README
Instance segmentation of garments, accessories, and garment components in photographs. RF-DETR-Seg (Apache 2.0) fine-tuned on Fashionpedia (CC BY 4.0), predicting all 46 Fashionpedia classes: 13 main garments (shirt/blouse … cape), 14 accessories, and 19 garment parts (collar, lapel, sleeve, pocket, neckline, zipper, buckle, and trim classes such as rivet, ruffle, sequin).
Built for wholesale apparel manufacturing QC, not e-commerce tagging: the
segmentation masks feed deterministic color measurement, and the part classes
map to BOM trim lines and construction details in a tech pack. It is one of
two models in a pipeline (see garment-attributes for fine-grained
construction attributes).
Out of scope: fiber content, GSM, measurements, stitch class, interior construction — none of these are visually determinable and this model does not pretend to output them.
scripts/prepare_detector_data.py (attributes stripped; masks kept).scripts/train_detector.py with configs/detector_mac.yaml
(8 epochs, effective batch 16, lr 1e-4, fp16 AMP, trained on Apple-silicon
MPS in ~37 hours).| Metric | Value |
|---|---|
| mask mAP@[.5:.95] | 0.352 |
| mask [email protected] | 0.502 |
| box mAP@[.5:.95] | 0.419 |
| box [email protected] | 0.549 |
| box mAP, main garments (ids 0–12) | 0.589 |
| box mAP, accessories (ids 13–26) | 0.534 |
| box mAP, garment parts (ids 27–45) | 0.204 |
Strongest classes: dress (0.87), pants (0.84), jacket and coat (approx. 0.75). Weakest: small trims — zipper (0.10), beads/appliqué (0.05) — and rare categories (cape, jumpsuit). Full per-class table ships in this repo.
Small trim classes (rivet, bead, sequin) score materially lower than garment
classes in all published Fashionpedia baselines; expect the same here and
check the per-class table in runs/detector before relying on a trim class
for QC decisions.
Weights: Apache 2.0. Training data: Fashionpedia, CC BY 4.0 — cite Jia et al., Fashionpedia: Ontology, Segmentation, and an Attribute Localization Dataset, ECCV 2020. Architecture: RF-DETR (Roboflow, Apache 2.0), ICLR 2026.
from rfdetr import RFDETRSegSmall
model = RFDETRSegSmall(pretrain_weights="checkpoint_best_ema.pth")
detections = model.predict("sample.jpg", threshold=0.5)
Full pipeline (attributes + color + tech pack validation): see the
garment-classifier repository this model ships with.
⚠ This card predates our model-card standard
It does not report: a baseline comparison, a measured failure rate, or what it refuses.
Every model we publish should state (1) the cheap baseline and the margin over it, (2) at least one named failure mode with a measured rate, (3) what the model refuses and why, and (4) label provenance. This card was written before that rule and has not been retrofitted, because the measurements needed no longer exist. Treat its numbers with more caution than our newer cards, and prefer a model that meets the standard where one exists.