svhn / README.md
admin
upd md
9cc5c94
|
raw
history blame
1.89 kB
---
license: mit
task_categories:
- text-classification
language:
- en
tags:
- legal
pretty_name: The Street View House Numbers (SVHN) Dataset
size_categories:
- 10K<n<100K
viewer: false
---
# Dataset card for SVHN
The Street View House Numbers (SVHN) dataset is a real-world image dataset developed and designed for machine learning and object recognition algorithms, and is characterized by low data preprocessing and formatting requirements. Similar to MNIST, SVHN contains images of small cropped numbers, but in terms of labeled data, SVHN is an order of magnitude larger than MNIST, comprising over 600,000 digital images. Unlike MNIST, SVHN deals with a much more challenging and unsolved real-world problem - recognizing numbers and strings of numbers in natural scene images. The dataset is derived from house numbers captured in Google Street View images.
## Maintenance
```bash
git clone git@hf.co:datasets/MuGemSt/svhn
cd svhn
```
## Usage
```python
import os
import zipfile
import requests
def download_file(url, save_path):
response = requests.get(url, stream=True)
with open(save_path, 'wb') as file:
for chunk in response.iter_content(chunk_size=1024):
if chunk:
file.write(chunk)
def unzip(zip_file_path, extract_to):
with zipfile.ZipFile(zip_file_path, 'r') as zip_ref:
for member in zip_ref.infolist():
zip_ref.extract(member, extract_to)
if not os.path.exists('./data.zip'):
download_file(
'https://www.modelscope.cn/datasets/MuGemSt/svhn/resolve/master/data.zip',
'data.zip'
)
if not os.path.exists('./data'):
unzip('data.zip', './')
```
## Mirror
<https://www.modelscope.cn/datasets/MuGemSt/svhn>
## Reference
[1] <a href="http://ufldl.stanford.edu/housenumbers">The Street View House Numbers (SVHN) Dataset</a><br>
[2] <https://github.com/MuGemSt/SVHN-Recognition>