AI SeedbankHelp preserve open and free AI for humanity's future

← All models

mattmdjaga_segformer_b2_clothes

mattmdjaga · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

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

  • vision
  • image-segmentation widget:
  • src: >- https://images.unsplash.com/photo-1643310325061-2beef64926a5?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Nnx8cmFjb29uc3xlbnwwfHwwfHw%3D&w=1000&q=80 example_title: Person
  • src: >- https://freerangestock.com/sample/139043/young-man-standing-and-leaning-on-car.jpg example_title: Person datasets:
  • mattmdjaga/human_parsing_dataset

Segformer B2 fine-tuned for clothes segmentation

SegFormer model fine-tuned on ATR dataset for clothes segmentation but can also be used for human segmentation. The dataset on hugging face is called "mattmdjaga/human_parsing_dataset".

Training code.

from transformers import SegformerImageProcessor, AutoModelForSemanticSegmentation
from PIL import Image
import requests
import matplotlib.pyplot as plt
import torch.nn as nn

processor = SegformerImageProcessor.from_pretrained("mattmdjaga/segformer_b2_clothes")
model = AutoModelForSemanticSegmentation.from_pretrained("mattmdjaga/segformer_b2_clothes")

url = "https://plus.unsplash.com/premium_photo-1673210886161-bfcc40f54d1f?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MXx8cGVyc29uJTIwc3RhbmRpbmd8ZW58MHx8MHx8&w=1000&q=80"

image = Image.open(requests.get(url, stream=True).raw)
inputs = processor(images=image, return_tensors="pt")

outputs = model(**inputs)
logits = outputs.logits.cpu()

upsampled_logits = nn.functional.interpolate(
    logits,
    size=image.size[::-1],
    mode="bilinear",
    align_corners=False,
)

pred_seg = upsampled_logits.argmax(dim=1)[0]
plt.imshow(pred_seg)

Labels: 0: "Background", 1: "Hat", 2: "Hair", 3: "Sunglasses", 4: "Upper-clothes", 5: "Skirt", 6: "Pants", 7: "Dress", 8: "Belt", 9: "Left-shoe", 10: "Right-shoe", 11: "Face", 12: "Left-leg", 13: "Right-leg", 14: "Left-arm", 15: "Right-arm", 16: "Bag", 17: "Scarf"

Evaluation

Label Index Label Name Category Accuracy Category IoU
0 Background 0.99 0.99
1 Hat 0.73 0.68
2 Hair 0.91 0.82
3 Sunglasses 0.73 0.63
4 Upper-clothes 0.87 0.78
5 Skirt 0.76 0.65
6 Pants 0.90 0.84
7 Dress 0.74 0.55
8 Belt 0.35 0.30
9 Left-shoe 0.74 0.58
10 Right-shoe 0.75 0.60
11 Face 0.92 0.85
12 Left-leg 0.90 0.82
13 Right-leg 0.90 0.81
14 Left-arm 0.86 0.74
15 Right-arm 0.82 0.73
16 Bag 0.91 0.84
17 Scarf 0.63 0.29

Overall Evaluation Metrics:

  • Evaluation Loss: 0.15
  • Mean Accuracy: 0.80
  • Mean IoU: 0.69

License

The license for this model can be found here.

BibTeX entry and citation info

@article{DBLP:journals/corr/abs-2105-15203,
  author    = {Enze Xie and
               Wenhai Wang and
               Zhiding Yu and
               Anima Anandkumar and
               Jose M. Alvarez and
               Ping Luo},
  title     = {SegFormer: Simple and Efficient Design for Semantic Segmentation with
               Transformers},
  journal   = {CoRR},
  volume    = {abs/2105.15203},
  year      = {2021},
  url       = {https://arxiv.org/abs/2105.15203},
  eprinttype = {arXiv},
  eprint    = {2105.15203},
  timestamp = {Wed, 02 Jun 2021 11:46:42 +0200},
  biburl    = {https://dblp.org/rec/journals/corr/abs-2105-15203.bib},
  bibsource = {dblp computer science bibliography, https://dblp.org}
}

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:03391dd85620dbfbc163cf33524b3bc19539d73b&dn=mattmdjaga_segformer_b2_clothes

Open magnet in torrent client · infohash 03391dd85620dbfbc163cf33524b3bc19539d73b

Files & hashes

PathSizesha1sha256
README.md4.3 KB (4,391 B)c744122aa160061440cc7ee3380c0cae1012747cfca39e62db301b5113f14ef71679da395d8c638a069176483373c74048563856
config.json1.7 KB (1,727 B)7bf506a3672235c681b35e124ef9333ca6f5e8b24b5127ca00fe61187b6cc6c232c9e19326ed228683f8f5c221790be9cc196a6e
handler.py1.5 KB (1,542 B)677fdf4567de92cdd30b8957c5b8d7c0563bcdfe67daa451f0b496d1e04aa6996aa5e7dfce90ac3dac141718ac7d18d8ada4608a
mattmdjaga_segformer_b2_clothes.json4.8 KB (4,912 B)0b574956d4dbb16142a6309fa81d8c8071511b354e015111e466fe5be43184708b62ec103610d637744d7300a984acc09e5850c3
model.safetensors104.4 MB (109,493,236 B)38ddd5893d954c8f4301f9297f96bed4b97b992c8f86fd90c567afd4370b3cc3a7e81ed767a632b2832a738331af660acc0c4c68
onnx/config.json1.7 KB (1,717 B)db6261b5b36fac4aea5274b43f0e8d2d5a2bfdc2936129706296da80364299e721f506453e492f8348cb54f400e9d769afc90282
onnx/preprocessor_config.json431 B (431 B)9063ab0ff9e34e2ad7d3e6622f3755ff3c650367b2809158244ec204c8a031976da7851775b53a50028b8a93000ed906184c505b
optimizer.pt209.0 MB (219,104,837 B)7fa670634d41d1a40d306be2784b363de9d6a27d4f642f5c29cb7c9ac0ff242ccf94220c88913f4a65db4727b2530a987ce14d9a
preprocessor_config.json271 B (271 B)d230721d08201d422c6e3d11994083b55e7e66caa608e3a47dcfba8dc052a766babb4b6c963285ab4f176bc6c1eb2b257fd3ad93
pytorch_model.bin104.5 MB (109,579,005 B)3047f46ac253ac74cae0ef1e76b636a60e937ee2934543143c97acf3197b030bb0ba046f6c713757467a7dcf47f27ce8c0d6264d
scheduler.pt627 B (627 B)d709dea8be64169b40df0017315f4088f316ae667a9a297dec0fe2336eab64ac3bbd47e4936655c43239740a40cfe5f4623a0657
trainer_state.json284.5 KB (291,299 B)205f1598461cab0a4a5845aa80a06ada96501f15a7f721292c22b2524bf53aee1fcbc796bb1b65c250039c0d5aef28e28cf7af72
training_args.bin3.2 KB (3,323 B)6172987ce487d71b287e3ed375c339c667eb8595210f58c34439201a03f7a2e923b10e2a9b03a8943740f452ae4e8f57ebcfc186

Cite this release

Canonical URL
https://aiseedbank.org/models/mattmdjaga_segformer_b2_clothes/
Slug
mattmdjaga_segformer_b2_clothes
Infohash
03391dd85620dbfbc163cf33524b3bc19539d73b
License
custom/other license
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: mattmdjaga_segformer_b2_clothes.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorymattmdjaga/segformer_b2_clothes
Revision (pinned)584abc1e1d260e23c0fc627c5217a09b2b461046
Fetched at2026-09-04T01:42:26Z
License at fetchother
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-04T01:42:32Z

custom/other license418.2 MB (438,487,318 bytes)transformerspytorchonnxsafetensorssegformervisionimage-segmentationendpoints_compatiblepaper: 2105.15203