Datasets:
Tasks:
Text Classification
Modalities:
Image
Formats:
imagefolder
Languages:
English
Size:
10K - 100K
License:
Update README.md
Browse files
README.md
CHANGED
@@ -25,22 +25,18 @@ import os
|
|
25 |
import zipfile
|
26 |
import requests
|
27 |
|
28 |
-
|
29 |
def download_file(url, save_path):
|
30 |
response = requests.get(url, stream=True)
|
31 |
-
response.raise_for_status()
|
32 |
with open(save_path, 'wb') as file:
|
33 |
for chunk in response.iter_content(chunk_size=1024):
|
34 |
if chunk:
|
35 |
file.write(chunk)
|
36 |
|
37 |
-
|
38 |
def unzip(zip_file_path, extract_to):
|
39 |
with zipfile.ZipFile(zip_file_path, 'r') as zip_ref:
|
40 |
for member in zip_ref.infolist():
|
41 |
zip_ref.extract(member, extract_to)
|
42 |
|
43 |
-
|
44 |
if not os.path.exists('./data.zip'):
|
45 |
download_file(
|
46 |
'https://huggingface.co/datasets/MuGeminorum/svhn/resolve/main/data.zip',
|
@@ -55,4 +51,5 @@ if not os.path.exists('./data'):
|
|
55 |
<https://www.modelscope.cn/datasets/MuGeminorum/svhn>
|
56 |
|
57 |
## Reference
|
58 |
-
[1] <a href="http://ufldl.stanford.edu/housenumbers">The Street View House Numbers (SVHN) Dataset</a>
|
|
|
|
25 |
import zipfile
|
26 |
import requests
|
27 |
|
|
|
28 |
def download_file(url, save_path):
|
29 |
response = requests.get(url, stream=True)
|
|
|
30 |
with open(save_path, 'wb') as file:
|
31 |
for chunk in response.iter_content(chunk_size=1024):
|
32 |
if chunk:
|
33 |
file.write(chunk)
|
34 |
|
|
|
35 |
def unzip(zip_file_path, extract_to):
|
36 |
with zipfile.ZipFile(zip_file_path, 'r') as zip_ref:
|
37 |
for member in zip_ref.infolist():
|
38 |
zip_ref.extract(member, extract_to)
|
39 |
|
|
|
40 |
if not os.path.exists('./data.zip'):
|
41 |
download_file(
|
42 |
'https://huggingface.co/datasets/MuGeminorum/svhn/resolve/main/data.zip',
|
|
|
51 |
<https://www.modelscope.cn/datasets/MuGeminorum/svhn>
|
52 |
|
53 |
## Reference
|
54 |
+
[1] <a href="http://ufldl.stanford.edu/housenumbers">The Street View House Numbers (SVHN) Dataset</a><br>
|
55 |
+
[2] <https://github.com/MuGeminorum/SVHN-Recognition>
|