AI Datasets
Esc

    ↑↓ move↵ open/ search from any page

    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-mnist
    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

    Showing 24 of 60 sampled rows(from 10,000 in the test split)
    Actual size
    28×28 px
    Enlarged 8×, pixelated
    this is all the model sees

    One of each class

    T - shirt / top
    T - shirt / top
    Trouser
    Trouser
    Pullover
    Pullover
    Dress
    Dress
    Coat
    Coat
    Sandal
    Sandal
    Shirt
    Shirt
    Sneaker
    Sneaker
    Bag
    Bag
    Ankle boot
    Ankle boot

    Random samples

    label: Pullover
    Pullover
    label: Pullover
    Pullover
    label: Pullover
    Pullover
    label: Bag
    Bag
    label: Shirt
    Shirt
    label: Bag
    Bag
    label: Shirt
    Shirt
    label: Sandal
    Sandal
    label: Pullover
    Pullover
    label: Sandal
    Sandal
    label: Shirt
    Shirt
    label: Sandal
    Sandal
    label: Sandal
    Sandal
    label: Sneaker
    Sneaker
    label: Ankle boot
    Ankle boot
    label: Sneaker
    Sneaker
    label: Sneaker
    Sneaker
    label: Bag
    Bag
    label: Sandal
    Sandal
    label: Pullover
    Pullover
    label: Shirt
    Shirt
    label: Bag
    Bag
    label: Sneaker
    Sneaker
    label: Pullover
    Pullover
    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

    Related datasets

    Landmark papers