Catalog / Vision
SVHN (2011)
600k digits cropped from Google Street View photos of house numbers.
Why it matters
MNIST's task with real photos: digits on house fronts, in any font and color, blurred, tilted, badly lit and often with other digits squeezed in at the sides. It became the third standard small-image benchmark after MNIST and CIFAR-10, and its huge "extra" split made it a favorite for semi-supervised learning. Reading whole house numbers with one deep network (Goodfellow et al., 2013) was an early real-world win for deep learning at Google.
Get the data
# pip install -U huggingface_hub
hf download ufldl-stanford/svhn --repo-type dataset \
--include "cropped_digits/*" \
--local-dir svhnfrom datasets import load_dataset # pip install datasets
ds = load_dataset("ufldl-stanford/svhn", "cropped_digits")
print(ds)import polars as pl
df = pl.read_parquet("hf://datasets/ufldl-stanford/svhn@~parquet/cropped_digits/test/*.parquet")
print(df.shape)- Year
- 2011
- Creators
- Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, Andrew Y. Ng
- Task
- Digit classification in real-world photos
- Size
- 630,420 digit images (73k train, 26k test, 531k extra)
- Splits
- train 73,257 · test 26,032 · extra 531,131
- Input
- 32×32 RGB crop centered on one digit
- Labels
- Digit 0–9
- License
- Non-commercial use
- Paper
- Reading Digits in Natural Images with Unsupervised Feature Learning
Samples

32×32 px

this is all the model sees
One of each class










Random samples




























































What one record actually looks like (raw JSON, row 20998)
{
"image": {
"height": 32,
"src": "samples/svhn/20998-image.jpg",
"width": 32
},
"label": 6
}Media fields point at a local copy; on Hugging Face they are bytes in a Parquet file.
Sampled 2026-11-07 from ufldl-stanford/svhn at revision f9e1717
Worth knowing
- The label is the digit in the center. Neighboring digits often show at the edges as distractors.
- In the original .mat files, the digit 0 is stored as label 10.
- The 531k "extra" images are described as somewhat easier than the core training set.
- A "full numbers" version keeps the whole photo with a box around every digit.
Related datasets
- MNIST: 1998, clean handwritten digitsHugging Face ↗MNIST on this site →
- CIFAR-10: 2009, tiny color photos of objectsHugging Face ↗CIFAR-10 on this site →
Landmark papers
- Maxout Networks (2013)
- Multi-digit Number Recognition from Street View Imagery using Deep Convolutional Neural Networks (2013)
- Dropout: A Simple Way to Prevent Neural Networks from Overfitting (Dropout) (2014)Dropout on this site →
- Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks (DCGAN) (2015)DCGAN on this site →