Catalog / Vision
Fashion-MNIST (2017)
70,000 Zalando product images, 28×28 grayscale, 10 classes. A harder MNIST.
Why it matters
Built as a drop-in replacement for MNIST: same image size, same format, same 60k/10k split, so any MNIST code runs unchanged. The authors' case was that MNIST had become too easy (classic methods reach 97%, CNNs 99.7%) and too unlike modern vision problems. Fashion-MNIST leaves more room between a linear model and a good CNN, and it became the second dataset in countless tutorials and papers.
Get the data
# pip install -U huggingface_hub
hf download zalando-datasets/fashion_mnist --repo-type dataset \
--local-dir fashion-mnistfrom datasets import load_dataset # pip install datasets
ds = load_dataset("zalando-datasets/fashion_mnist", "fashion_mnist")
print(ds)import polars as pl
df = pl.read_parquet("hf://datasets/zalando-datasets/fashion_mnist@~parquet/fashion_mnist/test/*.parquet")
print(df.shape)- Year
- 2017
- Creators
- Han Xiao, Kashif Rasul, Roland Vollgraf (Zalando Research)
- Task
- Image classification (clothing)
- Size
- 70,000 images
- Splits
- train 60,000 · test 10,000
- Input
- 28×28 grayscale image
- Labels
- T-shirt/top, trouser, pullover, dress, coat, sandal, shirt, sneaker, bag, ankle boot
- License
- MIT
- Paper
- Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms
Samples

28×28 px

this is all the model sees
One of each class










Random samples




























































What one record actually looks like (raw JSON, row 6595)
{
"image": {
"height": 28,
"src": "samples/fashion-mnist/6595-image.jpg",
"width": 28
},
"label": 2
}Media fields point at a local copy; on Hugging Face they are bytes in a Parquet file.
Sampled 2026-11-07 from zalando-datasets/fashion_mnist at revision 531be5e
Worth knowing
- Each image is a Zalando catalog photo that was trimmed, resized so its longest edge is 28 px, sharpened, centered, inverted and converted to grayscale.
- Shirt is the hardest class. It is easily confused with T-shirt/top, pullover and coat, and even humans disagree on it.
- A small crowd-sourced test in the project README put untrained human accuracy at about 83.5%, while good CNNs pass 93%.
Related datasets
- MNIST: 1998, the dataset it replacesHugging Face ↗MNIST on this site →
- KMNIST: 2018, cursive Japanese characters in the same formatgithub.com ↗