Machine Learning Datasets Machine Learning Datasets
  • GitHub
  • Slack
  • Documentation
Get Started
Machine Learning Datasets Machine Learning Datasets
Get Started
Machine Learning Datasets
  • GitHub
  • Slack
  • Documentation

Docy

Machine Learning Datasets

  • Folder icon closed Folder open iconDatasets
    • MNIST
    • ImageNet Dataset
    • COCO Dataset
    • CIFAR 10 Dataset
    • CIFAR 100 Dataset
    • FFHQ Dataset
    • Places205 Dataset
    • GTZAN Genre Dataset
    • GTZAN Music Speech Dataset
    • The Street View House Numbers (SVHN) Dataset
    • Caltech 101 Dataset
    • LibriSpeech Dataset
    • dSprites Dataset
    • PUCPR Dataset
    • RAVDESS Dataset
    • GTSRB Dataset
    • CSSD Dataset
    • ATIS Dataset
    • Free Spoken Digit Dataset (FSDD)
    • not-MNIST Dataset
    • ECSSD Dataset
    • COCO-Text Dataset
    • CoQA Dataset
    • FGNET Dataset
    • ESC-50 Dataset
    • GlaS Dataset
    • UTZappos50k Dataset
    • Pascal VOC 2012 Dataset
    • Pascal VOC 2007 Dataset
    • Omniglot Dataset
    • HMDB51 Dataset
    • Chest X-Ray Image Dataset
    • NIH Chest X-ray Dataset
    • Fashionpedia Dataset
    • DRIVE Dataset
    • Kaggle Cats & Dogs Dataset
    • Lincolnbeet Dataset
    • Sentiment-140 Dataset
    • MURA Dataset
    • LIAR Dataset
    • Stanford Cars Dataset
    • SWAG Dataset
    • HASYv2 Dataset
    • WFLW Dataset
    • Visdrone Dataset
    • 11k Hands Dataset
    • QuAC Dataset
    • LFW Deep Funneled Dataset
    • LFW Funneled Dataset
    • Office-Home Dataset
    • LFW Dataset
    • PlantVillage Dataset
    • Optical Handwritten Digits Dataset
    • UCI Seeds Dataset
    • STN-PLAD Dataset
    • FER2013 Dataset
    • Adience Dataset
    • PPM-100 Dataset
    • CelebA Dataset
    • Fashion MNIST Dataset
    • Google Objectron Dataset
    • CARPK Dataset
    • CACD Dataset
    • Flickr30k Dataset
    • Kuzushiji-Kanji (KKanji) dataset
    • KMNIST
    • EMNIST Dataset
    • USPS Dataset
    • MARS Dataset
    • HICO Classification Dataset
    • NSynth Dataset
    • RESIDE dataset
    • Electricity Dataset
    • DRD Dataset
    • Caltech 256 Dataset
    • AFW Dataset
    • PACS Dataset
    • TIMIT Dataset
    • KTH Actions Dataset
    • WIDER Face Dataset
    • WISDOM Dataset
    • DAISEE Dataset
    • WIDER Dataset
    • LSP Dataset
    • UCF Sports Action Dataset
    • Wiki Art Dataset
    • FIGRIM Dataset
    • ANIMAL (ANIMAL10N) Dataset
    • OPA Dataset
    • DomainNet Dataset
    • HAM10000 Dataset
    • Tiny ImageNet Dataset
    • Speech Commands Dataset
    • 300w Dataset
    • Food 101 Dataset
    • VCTK Dataset
    • LOL Dataset
    • AQUA Dataset
    • LFPW Dataset
    • ARID Video Action dataset
    • NABirds Dataset
    • SQuAD Dataset
    • ICDAR 2013 Dataset
    • Animal Pose Dataset
  • Folder icon closed Folder open iconDeep Lake Docs Home
  • Folder icon closed Folder open iconDataset Visualization
  • API Basics
  • Storage & Credentials
  • Getting Started
  • Tutorials (w Colab)
  • Playbooks
  • Data Layout
  • Folder icon closed Folder open iconShuffling in ds.pytorch()
  • Folder icon closed Folder open iconStorage Synchronization
  • Folder icon closed Folder open iconTensor Relationships
  • Folder icon closed Folder open iconQuickstart
  • Folder icon closed Folder open iconHow to Contribute

The Street View House Numbers (SVHN) Dataset

Estimated reading: 5 minutes

Visualization of SVHN Dataset in the Deep Lake UI

The Street View House Numbers (SVHN) Dataset

What is the SVHN Dataset?

The Street View House Number (SVHN) dataset has 60,0000 32 x 32 RGB images of printed digits (from 0 to 9) clipped from photographs of house number plates. The trimmed photos are centered on the digit of interest while surrounding digits and other distractions are retained. Photos of house numbers in various countries from Google Street View, as well as input from the Amazon Mechanical Turk (AMT) framework (used to identify and transcribe the single digits) was used to create the SVHN dataset.
 
In addition to the training and testing sets, SVHN also provides an additional set that is less challenging and may be used to assist in the training process. In all, the SVHN dataset provides an unbiased real-world picture dataset for machine learning and object recognition with little data preparation and formatting needed.

Download SVHN Dataset in Python

Instead of downloading the MNIST dataset in Python, you can effortlessly load it in Python via our Deep Lake open-source with just one line of code.

Load SVHN Dataset Training Subset in Python

				
					import deeplake
ds = deeplake.load('hub://activeloop/svhn-train')
				
			

Load SVHN Dataset Extra Subset in Python

				
					import deeplake
ds = deeplake.load('hub://activeloop/svhn-extra')
				
			

Load SVHN Dataset Test Subset in Python

				
					import deeplake
ds = deeplake.load('hub://activeloop/svhn-test')
				
			

SVHN Dataset Structure

SVHN Data Fields
  • image: a tensor containing 32×32 image
  • boxes: a tensor to draw character-level bounding boxes around the digits.
  • labels: an integer between 0 to 9 representing digits.
SVHN Data Splits
  • SVHN training split comprises 73257 digits
  • SVHN testing split comprises 26032 digits.
  • SVHN extra split comprises 531131 digits, these are comparatively less difficult samples, to use as extra training data.

How to use SVHN Dataset with PyTorch and TensorFlow in Python

Train a model on the SVHN dataset with PyTorch in Python

Let’s use Deep Lake built-in PyTorch one-line dataloader to connect the data to the compute:

				
					dataloader = ds.pytorch(num_workers=0, batch_size=4, shuffle=False)
				
			
Train a model on the SVHN dataset with TensorFlow in Python
				
					dataloader = ds.tensorflow()
				
			

Additional Information about SVHN Dataset

  • Homepage: http://ufldl.stanford.edu/housenumbers/
  • Paper: Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, Andrew Y. Ng Reading Digits in Natural Images with Unsupervised Feature Learning NIPS Workshop on Deep Learning and Unsupervised Feature Learning 2011. (PDF)
Licensing Information
Deep Lake users may have access to a variety of publicly available datasets. We do not host or distribute these datasets, vouch for their quality or fairness, or claim that you have a license to use the datasets. It is your responsibility to determine whether you have permission to use the datasets under their license.
If you’re a dataset owner and do not want your dataset to be included in this library, please get in touch through a GitHub issue. Thank you for your contribution to the ML community!
Citation Information
				
					title={SVHN: Reading Digits in Natural Images with Unsupervised Feature Learning}, 
author={Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, Andrew Y. Ng }, Workshop={NIPS Workshop on Deep Learning and Unsupervised Feature Learning }
year={2011}
				
			

SVHN Dataset FAQs

What is the SVHN dataset for Python?

The SVHN dataset is used for developing machine learning and object recognition algorithms with minimal requirements for data preprocessing and formatting. It contains real-world images and has an order of magnitude more labeled data than the MNIST dataset. SVHN was created from house numbers in Google Street View images.

What is the SVHN dataset used for?
The Street View House Numbers (SVHN) dataset is used for creating machine learning and object recognition algorithms. It is a commonly used benchmark dataset as it needs minimal data preprocessing and formatting. MNIST‘s photos, for example, are cropped, but this dataset has an order of magnitude more labeled data (nearly 600,000 digit images) and is geared towards a far more difficult problem (recognizing digits and numbers in natural scene images).
 
How was the SVHN dataset generated?

The SVHN dataset was created by combining a large amount of Google Street View images by utilizing a combination of scripts and Amazon Mechanical Turk, which helped localize, as well as transcribe the single digits. A large set of urban area house numbers from different countries was used in the sample.

How to download the SVHN dataset in Python?

With the open-source package Activeloop Deep Lake, you can load the SVHN dataset with one line of code using Python. See detailed instructions on loading the SVHN dataset training subset and the SVHN dataset testing subset in Python.

How can I use SVHN dataset in PyTorch or TensorFlow?

The open-source package Activeloop Deep Lake allows you to stream the SVHN dataset while training a model in TensorFlow or PyTorch with one line of code. See detailed instructions on how to train a model with PyTorch in Python or train a model on the SVHN dataset with TensorFlow in Python.

Datasets - Previous Google Objectron Dataset Next - Datasets GTZAN Music Speech Dataset
Leaf Illustration

© 2022 All Rights Reserved by Snark AI, inc dba Activeloop