Itbanque/fashion_segformer
Image Segmentation • 47.3M • Updated
• 244 • 4
image image | label image |
|---|---|
A multi-class semantic segmentation dataset that merges:
An extra class bikini is added on top of the 46 DeepFashion2 categories. Suited for models like SegFormer, U-Net, etc.
id2label.json with IDs 0…47, where:0 = unlabelled (pixels without annotation)1…46 = DeepFashion2-style apparel & accessories47 = bikini (from Roboflow source)There is no explicit background class. Unannotated pixels are
0 = unlabelled.
trainvalidationtestA multilabel-stratified split is used to keep class presence ratios similar across splits.
from datasets import load_dataset
# Replace if your repo id differs
ds = load_dataset("Itbanque/fashion_segformer")
train_ds = ds["train"]
val_ds = ds["validation"]
print(train_ds[0].keys()) # {'image', 'label'}
Each sample:
image: PIL RGB image (H, W, 3)label: PIL "L" image (H, W), values in {0..47}import numpy as np
import matplotlib.pyplot as plt
ex = train_ds[0]
img, mask = ex["image"], ex["label"]
print("unique mask ids:", np.unique(np.array(mask)))
plt.figure(figsize=(8,4))
plt.subplot(1,2,1); plt.imshow(img); plt.axis("off"); plt.title("image")
plt.subplot(1,2,2); plt.imshow(mask, cmap="tab20"); plt.axis("off"); plt.title("mask (IDs)")
plt.tight_layout(); plt.show()
{
"0": "unlabelled",
"1": "shirt, blouse",
"2": "top, t-shirt, sweatshirt",
"...": "...",
"46": "tassel",
"47": "bikini"
}
.
├─ README.md
├─ id2label.json
├─ fashion_segmentation_split_stats.png # optional visual
└─ data files (parquet/arrow or image/mask folders)
This dataset combines and repackages annotations and/or images from:
Please review the original sources’ licenses/terms of use. If you publish results, cite the sources appropriately.
@misc{fashion-segmentation-combined,
title = {Fashion Segmentation (Combined DeepFashion2 + Bikini)},
author = {Jian},
year = {2025},
howpublished = {\url{https://huggingface.co/datasets/fj11/fashion}}
}