MuGeminorum/svhn
收藏数据集卡片 for SVHN
概述
名称: The Street View House Numbers (SVHN) Dataset
任务类别: 文本分类
语言: 英语
标签: 法律
大小类别: 10K<n<100K
描述
The Street View House Numbers (SVHN) 数据集是一个用于机器学习和对象识别算法开发的现实世界图像数据集,其特点是数据预处理和格式化要求极低。与MNIST类似,SVHN包含裁剪的小数字图像,但在标记数据量上超过MNIST一个数量级,包含超过600,000张数字图像。与MNIST不同,SVHN解决了一个更具挑战性和未解决的现实世界问题——在自然场景图像中识别数字和号码。该数据集源自Google Street View图像中的房屋号码。
使用方法
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://huggingface.co/datasets/MuGeminorum/svhn/resolve/main/data.zip, data.zip )
if not os.path.exists(./data): unzip(data.zip, ./)
参考文献
[1] The Street View House Numbers (SVHN) Dataset
[2] SVHN-Recognition



