fashn-ai_fashn-human-parser
fashn-ai · View on Hugging Face ↗
Get this model
Seeders: 1 · Leechers: 0
Observed 2026-09-02T13:56:39Z via announce.aitorrent.org:7070.
Model card
The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.
license: other license_name: nvidia-segformer license_link: https://github.com/NVlabs/SegFormer/blob/master/LICENSE library_name: transformers pipeline_tag: image-segmentation tags:
- segformer
- human-parsing
- semantic-segmentation
- fashion
- virtual-try-on language:
- en
FASHN Human Parser
A SegFormer-B4 model fine-tuned for human parsing with 18 semantic classes, optimized for fashion and virtual try-on applications.
Model Description
This model segments human images into 18 semantic categories including body parts (face, hair, arms, hands, legs, feet, torso), clothing items (top, dress, skirt, pants, belt, scarf), and accessories (bag, hat, glasses, jewelry).
- Architecture: SegFormer-B4 (MIT-B4 encoder + MLP decoder)
- Input Size: 384 x 576 (width x height)
- Output: 18-class semantic segmentation mask
- Base Model: nvidia/mit-b4
Usage
Quick Start with Pipeline
from transformers import pipeline
pipe = pipeline("image-segmentation", model="fashn-ai/fashn-human-parser")
result = pipe("image.jpg")
# result is a list of dicts with 'label', 'score', 'mask' for each detected class
The pipeline automatically manages GPU/CPU and returns per-class masks at the original image resolution.
Explicit Usage
from transformers import SegformerForSemanticSegmentation, SegformerImageProcessor
from PIL import Image
import torch
# Load model and processor
processor = SegformerImageProcessor.from_pretrained("fashn-ai/fashn-human-parser")
model = SegformerForSemanticSegmentation.from_pretrained("fashn-ai/fashn-human-parser")
# Load and preprocess image
image = Image.open("path/to/image.jpg")
inputs = processor(images=image, return_tensors="pt")
# Inference
with torch.no_grad():
outputs = model(**inputs)
logits = outputs.logits # (1, 18, H/4, W/4)
# Upsample to original size and get predictions
upsampled = torch.nn.functional.interpolate(
logits, size=image.size[::-1], mode="bilinear", align_corners=False
)
predictions = upsampled.argmax(dim=1).squeeze().numpy()
Production Usage (Recommended)
For maximum accuracy, use our Python package which implements the exact preprocessing used during training:
pip install fashn-human-parser
from fashn_human_parser import FashnHumanParser
parser = FashnHumanParser() # auto-detects GPU
segmentation = parser.predict("image.jpg")
# segmentation is a numpy array of shape (H, W) with class IDs 0-17
The package uses cv2.INTER_AREA for resizing (matching training), while the HuggingFace pipeline uses PIL LANCZOS.
Label Definitions
| ID | Label |
|---|---|
| 0 | background |
| 1 | face |
| 2 | hair |
| 3 | top |
| 4 | dress |
| 5 | skirt |
| 6 | pants |
| 7 | belt |
| 8 | bag |
| 9 | hat |
| 10 | scarf |
| 11 | glasses |
| 12 | arms |
| 13 | hands |
| 14 | legs |
| 15 | feet |
| 16 | torso |
| 17 | jewelry |
Category Mappings
For virtual try-on applications:
| Category | Body Coverage | Relevant Labels |
|---|---|---|
| Tops | Upper body | top, dress, scarf |
| Bottoms | Lower body | skirt, pants, belt |
| One-pieces | Full body | top, dress, scarf, skirt, pants, belt |
Identity Labels
Labels typically preserved during virtual try-on: face, hair, jewelry, bag, glasses, hat
Training
This model was fine-tuned on a proprietary dataset curated and annotated by FASHN AI, specifically designed for virtual try-on applications. The 18-class label schema was developed to capture the semantic regions most relevant for clothing transfer and human body understanding in fashion contexts.
Limitations
- Optimized for single-person images with clear visibility
- Best results on fashion/e-commerce style photography
- Input images are resized to 384x576; very small subjects may lose detail
Citation
@misc{fashn-human-parser,
author = {FASHN AI},
title = {FASHN Human Parser: SegFormer for Fashion Human Parsing},
year = {2024},
publisher = {Hugging Face},
url = {https://huggingface.co/fashn-ai/fashn-human-parser}
}
License
This model inherits the NVIDIA Source Code License for SegFormer. Please review the license terms before use.
Links
- FASHN AI
- Interactive Demo
- GitHub Repository
- PyPI Package
Magnet link
Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:
magnet:?xt=urn:btih:5f58a4e0c343093cac6e82ff7acc93aa7e974cf3&dn=fashn-ai_fashn-human-parserOpen magnet in torrent client · infohash 5f58a4e0c343093cac6e82ff7acc93aa7e974cf3
Files & hashes
| Path | Size | sha1 | sha256 |
|---|---|---|---|
| README.md | 4.8 KB (4,929 B) | 3871b92ff0de0156c94bce539fb3fec3474e12c9 | e23eb885bde6f74b89cb0b9733287e566b9e169eea3a15f99ea2ffa951ebc721 |
| config.json | 1.6 KB (1,654 B) | 26f3fa06a94402acb07b6b5f9f2895f5b6d3a568 | 87bd5b66419dbfa7c02cfbeb94e292454863b1606c5df29526b19a6c1de70d9f |
| model.safetensors | 244.3 MB (256,146,352 B) | 7460325b64d483d97aa86a5ddfb352f4455b2de9 | e43c8c8a9b04f28798f0a4630cf18caa2cdb27a0d454fae43a5716e6f7078244 |
| preprocessor_config.json | 340 B (340 B) | 18dc568009c2b1646a351eece0d4d81b8ed20f9c | 54007eb4cedae02565c4f035750aeebe3ddc53d36ab575e8534615623e6b6225 |
Cite this release
- Canonical URL
- https://aiseedbank.org/models/fashn-ai_fashn-human-parser/
- Slug
- fashn-ai_fashn-human-parser
- Infohash
- 5f58a4e0c343093cac6e82ff7acc93aa7e974cf3
- License
- custom/other license
- Signing key fingerprint
- 85a3b32c3712427b
Every file carries a locally computed sha256 — verify a download against the signed sums: fashn-ai_fashn-human-parser.SHA256SUMS (+ minisign signature).
Provenance
| Upstream repository | fashn-ai/fashn-human-parser |
|---|---|
| Revision (pinned) | 1f80c34dbab321c5730dda5c3fea279fd3e97498 |
| Fetched at | 2026-09-02T04:34:59Z |
| License at fetch | other |
| Snapshot tool | huggingface · seedbank 0.1.0 |
Trackers
- udp://announce.aitorrent.org:6969/announce
- http://announce.aitorrent.org:7070/announce
- udp://announce2.aitorrent.org:6970/announce
- http://announce2.aitorrent.org:7071/announce
- udp://tracker.opentrackr.org:1337/announce
- udp://open.demonii.com:1337/announce
- udp://open.stealth.si:80/announce
- udp://exodus.desync.com:6969/announce
- udp://tracker.torrent.eu.org:451/announce
✓ verified · rehash-vs-hf-metadata at 2026-09-02T04:35:06Z
custom/other license244.3 MB (256,153,275 bytes)transformerssafetensorssegformerhuman-parsingsemantic-segmentationfashionvirtual-try-onimage-segmentationendpoints_compatible1 language (en)