gitwtfhub

wtf is fashion-mnist?

zalandoresearch/fashion-mnist — explained in plain English

Analysis updated 2026-06-24

12,733PythonAudience · researcherComplexity · 2/5Setup · easy

TL;DR

A dataset of 70,000 clothing images in 10 categories designed as a harder drop-in replacement for the classic MNIST handwritten digit dataset. Loads directly in PyTorch, TensorFlow, and Keras with no manual download needed.

Mindmap

mindmap
  root((repo))
    What it is
      Image dataset
      10 clothing categories
      70,000 images total
    Why it exists
      MNIST replacement
      Harder benchmark
      Same file format
    How to load it
      PyTorch built-in
      Keras built-in
      TensorFlow Datasets
      NumPy raw files
    Use cases
      Model benchmarking
      Classification tutorials
      Research comparisons
    Background
      Zalando research team
      Academic papers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Train and benchmark an image classification model against a standard reference dataset that is more challenging than MNIST digits.

REASON 2

Replace MNIST with Fashion-MNIST in an existing training script or tutorial without changing any data-loading code.

REASON 3

Compare your model's accuracy against the community benchmark results table provided in the repository.

REASON 4

Run quick classification experiments in PyTorch or Keras without downloading any files manually.

What's in the stack?

PythonPyTorchTensorFlowKerasNumPy

How it stacks up

zalandoresearch/fashion-mnistzai-org/cogvideodbt-labs/dbt-core
Stars12,73312,71912,769
LanguagePythonPythonPython
Setup difficultyeasyhardmoderate
Complexity2/54/53/5
Audienceresearcherdeveloperdata

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 5min

Wtf does this do

Fashion-MNIST is a dataset created by the research team at Zalando, the European fashion retailer. It contains 70,000 small grayscale images of clothing items, split into 60,000 for training machine learning models and 10,000 for testing them. Each image is 28 by 28 pixels and belongs to one of ten categories: T-shirt or top, trouser, pullover, dress, coat, sandal, shirt, sneaker, bag, or ankle boot. The dataset was built as a direct replacement for a much older and widely used dataset called MNIST, which contains handwritten digit images in the exact same format. The Zalando team's argument is that MNIST has become too easy: modern machine learning methods can classify handwritten digits with near-perfect accuracy, which makes it a poor test for comparing different approaches. They argue that clothing images are harder to distinguish, making Fashion-MNIST a more meaningful benchmark while keeping the same file format and size so that existing code written for MNIST can load it without any changes. Because it mirrors the MNIST format exactly, Fashion-MNIST is built into many popular machine learning libraries already. You can load it directly in PyTorch, TensorFlow, Keras, Hugging Face Datasets, and several others without downloading anything manually. If you prefer to download the raw files yourself, the README links to them directly. The repository also includes scripts for loading the data with NumPy, visualizing the images, and running benchmark comparisons. The README lists results from many different approaches that have been tested on this dataset, providing a reference table researchers can use to see how their own methods compare. This is a dataset and benchmarking resource, not an application. Its audience is machine learning researchers and practitioners who want a standard test case that is more demanding than handwritten digits but still simple enough to iterate on quickly.

Yoink these prompts

Prompt 1
Load the Fashion-MNIST dataset in PyTorch and train a simple CNN to classify clothing images into the 10 categories.
Prompt 2
Replace MNIST with Fashion-MNIST in my existing Keras training script, show me the one-line change needed.
Prompt 3
Write a Python script using NumPy to load the raw Fashion-MNIST files and display a grid of sample images from each of the 10 classes.
Prompt 4
Run a benchmark in PyTorch comparing logistic regression vs a simple CNN on Fashion-MNIST and print the test accuracy for each.
Prompt 5
My model gets 90% on MNIST, help me adapt it for Fashion-MNIST and identify where accuracy drops between clothing categories.

Frequently asked questions

wtf is fashion-mnist?

A dataset of 70,000 clothing images in 10 categories designed as a harder drop-in replacement for the classic MNIST handwritten digit dataset. Loads directly in PyTorch, TensorFlow, and Keras with no manual download needed.

What language is fashion-mnist written in?

Mainly Python. The stack also includes Python, PyTorch, TensorFlow.

How hard is fashion-mnist to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is fashion-mnist for?

Mainly researcher.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.