AI Datasets
Esc

    ↑↓ move↵ open/ search from any page

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

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

    One of each class

    0
    0
    1
    1
    2
    2
    3
    3
    4
    4
    5
    5
    6
    6
    7
    7
    8
    8
    9
    9

    Random samples

    label: 6
    6
    label: 9
    9
    label: 5
    5
    label: 3
    3
    label: 2
    2
    label: 1
    1
    label: 1
    1
    label: 1
    1
    label: 8
    8
    label: 2
    2
    label: 7
    7
    label: 5
    5
    label: 8
    8
    label: 9
    9
    label: 3
    3
    label: 6
    6
    label: 4
    4
    label: 3
    3
    label: 1
    1
    label: 1
    1
    label: 6
    6
    label: 1
    1
    label: 1
    1
    label: 8
    8
    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

    Related datasets

    Landmark papers