Convert dataset to Parquet (#1)
Browse files- Convert dataset to Parquet (429010a378e39f8c852e41b9353601acd6156043)
- Delete data file (5a0911b0192b16247461c1a968c103a65a9356d1)
- Delete data file (d21dbccaed12adec5387ed5e3ac4e6b63932a822)
- Delete data file (20dd981416045f10703d6a6bc387405451ee0056)
- Delete loading script (5e141e830a62c7408bee57782cb5636f62c1e6fc)
- Delete data file (f5c557705b141cc527889b42f4ad4cd48e75b297)
- Delete data file (e5e6aa01a6555da86f3164137452203f6c94a0c9)
- Delete data file (2ea7ce0d53dad3bff0fca28bb271ad63c86b0df0)
- Delete data file (2785ad020cf4068960201cda4cfaf721cb440ab6)
- Delete data file (c0a9ce322c3eacd84219cc7e3dd6dc0a41925cf4)
- Delete data file (f1eeb81649c355b411ce89f529772b033fe5b72d)
- .gitattributes +9 -0
- README.md +42 -24
- data/{gaussian_noise.zip → contrast-00000-of-00001.parquet} +2 -2
- data/{impulse_noise.zip → gaussian_noise-00000-of-00001.parquet} +2 -2
- data/{jpeg_compression.zip → impulse_noise-00000-of-00001.parquet} +2 -2
- data/jpeg_compression-00000-of-00001.parquet +3 -0
- data/motion_blur-00000-of-00001.parquet +3 -0
- data/motion_blur.zip +0 -3
- data/{contrast.zip → pixelate-00000-of-00001.parquet} +2 -2
- data/pixelate.zip +0 -3
- data/spatter-00000-of-00001.parquet +3 -0
- data/spatter.zip +0 -3
- data/test-00000-of-00001.parquet +3 -0
- data/test.zip +0 -3
- data/train-00000-of-00001.parquet +3 -0
- data/train.zip +0 -3
- gtsrb.py +0 -83
.gitattributes
CHANGED
@@ -1 +1,10 @@
|
|
1 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
2 |
+
data/train-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text
|
3 |
+
data/test-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text
|
4 |
+
data/contrast-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text
|
5 |
+
data/gaussian_noise-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text
|
6 |
+
data/impulse_noise-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text
|
7 |
+
data/jpeg_compression-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text
|
8 |
+
data/motion_blur-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text
|
9 |
+
data/pixelate-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text
|
10 |
+
data/spatter-00000-of-00001.parquet filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
@@ -1,4 +1,10 @@
|
|
1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
dataset_info:
|
3 |
features:
|
4 |
- name: image
|
@@ -32,9 +38,8 @@ dataset_info:
|
|
32 |
'22': red and white triangle rough / bumpy road warning
|
33 |
'23': red and white triangle car skidding / slipping warning
|
34 |
'24': red and white triangle with merging / narrow lanes warning
|
35 |
-
'25':
|
36 |
-
|
37 |
-
work warning
|
38 |
'26': red and white triangle with traffic light approaching warning
|
39 |
'27': red and white triangle with person walking warning
|
40 |
'28': red and white triangle with child and person walking warning
|
@@ -50,48 +55,61 @@ dataset_info:
|
|
50 |
'38': blue circle with white keep right arrow mandatory
|
51 |
'39': blue circle with white keep left arrow mandatory
|
52 |
'40': blue circle with white arrows indicating a traffic circle
|
53 |
-
'41':
|
54 |
-
white circle with gray strike bar indicating no passing for cars has
|
55 |
ended
|
56 |
-
'42':
|
57 |
-
white circle with gray strike bar indicating no passing for trucks
|
58 |
has ended
|
59 |
splits:
|
60 |
- name: train
|
61 |
-
num_bytes:
|
62 |
num_examples: 26640
|
63 |
- name: test
|
64 |
-
num_bytes:
|
65 |
num_examples: 12630
|
66 |
- name: contrast
|
67 |
-
num_bytes:
|
68 |
num_examples: 12630
|
69 |
- name: gaussian_noise
|
70 |
-
num_bytes:
|
71 |
num_examples: 12630
|
72 |
- name: impulse_noise
|
73 |
-
num_bytes:
|
74 |
num_examples: 12630
|
75 |
- name: jpeg_compression
|
76 |
-
num_bytes:
|
77 |
num_examples: 12630
|
78 |
- name: motion_blur
|
79 |
-
num_bytes:
|
80 |
num_examples: 12630
|
81 |
- name: pixelate
|
82 |
-
num_bytes:
|
83 |
num_examples: 12630
|
84 |
- name: spatter
|
85 |
-
num_bytes:
|
86 |
num_examples: 12630
|
87 |
-
download_size:
|
88 |
-
dataset_size:
|
89 |
-
|
90 |
-
-
|
91 |
-
|
92 |
-
-
|
93 |
-
|
94 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
---
|
96 |
|
97 |
|
|
|
1 |
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
size_categories:
|
5 |
+
- 10K<n<100K
|
6 |
+
task_categories:
|
7 |
+
- image-classification
|
8 |
dataset_info:
|
9 |
features:
|
10 |
- name: image
|
|
|
38 |
'22': red and white triangle rough / bumpy road warning
|
39 |
'23': red and white triangle car skidding / slipping warning
|
40 |
'24': red and white triangle with merging / narrow lanes warning
|
41 |
+
'25': red and white triangle with person digging / construction / road work
|
42 |
+
warning
|
|
|
43 |
'26': red and white triangle with traffic light approaching warning
|
44 |
'27': red and white triangle with person walking warning
|
45 |
'28': red and white triangle with child and person walking warning
|
|
|
55 |
'38': blue circle with white keep right arrow mandatory
|
56 |
'39': blue circle with white keep left arrow mandatory
|
57 |
'40': blue circle with white arrows indicating a traffic circle
|
58 |
+
'41': white circle with gray strike bar indicating no passing for cars has
|
|
|
59 |
ended
|
60 |
+
'42': white circle with gray strike bar indicating no passing for trucks
|
|
|
61 |
has ended
|
62 |
splits:
|
63 |
- name: train
|
64 |
+
num_bytes: 252930879.36
|
65 |
num_examples: 26640
|
66 |
- name: test
|
67 |
+
num_bytes: 104816357.02
|
68 |
num_examples: 12630
|
69 |
- name: contrast
|
70 |
+
num_bytes: 104816357.02
|
71 |
num_examples: 12630
|
72 |
- name: gaussian_noise
|
73 |
+
num_bytes: 104816357.02
|
74 |
num_examples: 12630
|
75 |
- name: impulse_noise
|
76 |
+
num_bytes: 104816357.02
|
77 |
num_examples: 12630
|
78 |
- name: jpeg_compression
|
79 |
+
num_bytes: 104816357.02
|
80 |
num_examples: 12630
|
81 |
- name: motion_blur
|
82 |
+
num_bytes: 104816357.02
|
83 |
num_examples: 12630
|
84 |
- name: pixelate
|
85 |
+
num_bytes: 39121740.4
|
86 |
num_examples: 12630
|
87 |
- name: spatter
|
88 |
+
num_bytes: 104816357.02
|
89 |
num_examples: 12630
|
90 |
+
download_size: 1027074522
|
91 |
+
dataset_size: 1025767118.8999999
|
92 |
+
configs:
|
93 |
+
- config_name: default
|
94 |
+
data_files:
|
95 |
+
- split: train
|
96 |
+
path: data/train-*
|
97 |
+
- split: test
|
98 |
+
path: data/test-*
|
99 |
+
- split: contrast
|
100 |
+
path: data/contrast-*
|
101 |
+
- split: gaussian_noise
|
102 |
+
path: data/gaussian_noise-*
|
103 |
+
- split: impulse_noise
|
104 |
+
path: data/impulse_noise-*
|
105 |
+
- split: jpeg_compression
|
106 |
+
path: data/jpeg_compression-*
|
107 |
+
- split: motion_blur
|
108 |
+
path: data/motion_blur-*
|
109 |
+
- split: pixelate
|
110 |
+
path: data/pixelate-*
|
111 |
+
- split: spatter
|
112 |
+
path: data/spatter-*
|
113 |
---
|
114 |
|
115 |
|
data/{gaussian_noise.zip → contrast-00000-of-00001.parquet}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6a7a5d2da523c3f224fc30360003e00ee702d21cd96599fafd55be51e3729e2b
|
3 |
+
size 100203225
|
data/{impulse_noise.zip → gaussian_noise-00000-of-00001.parquet}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cedc2a65e9fcbde17321f222cb3964bbd403ed11f40eaf02823eebaceb420016
|
3 |
+
size 118497039
|
data/{jpeg_compression.zip → impulse_noise-00000-of-00001.parquet}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:def3beda451e7cf55b06a947faebaed68ef79111db69f7911dffe72e5898d087
|
3 |
+
size 109913778
|
data/jpeg_compression-00000-of-00001.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:73293904025663de31f2a08608e264fa61d8270cf427f8af20718e1a339ce529
|
3 |
+
size 107520146
|
data/motion_blur-00000-of-00001.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:87f38380da38c3fb296327271ea075407632713fcc0674846100c1af820d5839
|
3 |
+
size 109348620
|
data/motion_blur.zip
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:fa6938418101ef77110cc700c9cc7942d1deec9182cc3490903dad55af6331b1
|
3 |
-
size 88657131
|
|
|
|
|
|
|
|
data/{contrast.zip → pixelate-00000-of-00001.parquet}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:47cc9b1e369d74c0c355009a8eaac777b1592264e2efe86639e1fcb049803b6a
|
3 |
+
size 38517533
|
data/pixelate.zip
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:5792eb9a91376bb8fa1d6157170dfe6026d6bd69c690dbc4089ea285a445a39a
|
3 |
-
size 27164607
|
|
|
|
|
|
|
|
data/spatter-00000-of-00001.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2606bd08fcfe2d5781688bcd9bee84772f52255a860b4bb83c6336184e350489
|
3 |
+
size 109736444
|
data/spatter.zip
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:cc3c91df697702ce6cb069df58f9ddc3cd4a9fd8b2bf8dc038f89c20e8c5106e
|
3 |
-
size 91524208
|
|
|
|
|
|
|
|
data/test-00000-of-00001.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2f868c4e7ae887b3aee00c3c6348ac155287e5fb0497f1c7d7683694299c7e67
|
3 |
+
size 109166076
|
data/test.zip
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:0906180dba332274fc5c57b784bc315234f6290d1e4582878e387767be16d54d
|
3 |
-
size 89209187
|
|
|
|
|
|
|
|
data/train-00000-of-00001.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:22f75b0cab6937dab1c82de33f8354ae14d4b42d42b08c94879027b26cb97cb6
|
3 |
+
size 224171661
|
data/train.zip
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:97793acfe2ccddfa78c52e85d2f5344d68b0b14fae17ea6976660975a21dfdc0
|
3 |
-
size 188000403
|
|
|
|
|
|
|
|
gtsrb.py
DELETED
@@ -1,83 +0,0 @@
|
|
1 |
-
import datasets
|
2 |
-
from datasets.data_files import DataFilesDict
|
3 |
-
from datasets.packaged_modules.imagefolder.imagefolder import ImageFolder, ImageFolderConfig
|
4 |
-
|
5 |
-
logger = datasets.logging.get_logger(__name__)
|
6 |
-
|
7 |
-
|
8 |
-
class GTSRB(ImageFolder):
|
9 |
-
R"""
|
10 |
-
GTSRB dataset for image classification.
|
11 |
-
"""
|
12 |
-
|
13 |
-
BUILDER_CONFIG_CLASS = ImageFolderConfig
|
14 |
-
BUILDER_CONFIGS = [
|
15 |
-
ImageFolderConfig(name='default', features=("images", "labels"), data_files=DataFilesDict({split: f"data/{split}.zip" for split in ["train", "test"] + ["contrast", "gaussian_noise", "impulse_noise", "jpeg_compression", "motion_blur", "pixelate", "spatter"]}),)
|
16 |
-
]
|
17 |
-
|
18 |
-
|
19 |
-
classnames = [
|
20 |
-
"red and white circle 20 kph speed limit",
|
21 |
-
"red and white circle 30 kph speed limit",
|
22 |
-
"red and white circle 50 kph speed limit",
|
23 |
-
"red and white circle 60 kph speed limit",
|
24 |
-
"red and white circle 70 kph speed limit",
|
25 |
-
"red and white circle 80 kph speed limit",
|
26 |
-
"end / de-restriction of 80 kph speed limit",
|
27 |
-
"red and white circle 100 kph speed limit",
|
28 |
-
"red and white circle 120 kph speed limit",
|
29 |
-
"red and white circle red car and black car no passing",
|
30 |
-
"red and white circle red truck and black car no passing",
|
31 |
-
"red and white triangle road intersection warning",
|
32 |
-
"white and yellow diamond priority road",
|
33 |
-
"red and white upside down triangle yield right-of-way",
|
34 |
-
"stop",
|
35 |
-
"empty red and white circle",
|
36 |
-
"red and white circle no truck entry",
|
37 |
-
"red circle with white horizonal stripe no entry",
|
38 |
-
"red and white triangle with exclamation mark warning",
|
39 |
-
"red and white triangle with black left curve approaching warning",
|
40 |
-
"red and white triangle with black right curve approaching warning",
|
41 |
-
"red and white triangle with black double curve approaching warning",
|
42 |
-
"red and white triangle rough / bumpy road warning",
|
43 |
-
"red and white triangle car skidding / slipping warning",
|
44 |
-
"red and white triangle with merging / narrow lanes warning",
|
45 |
-
"red and white triangle with person digging / construction / road work warning",
|
46 |
-
"red and white triangle with traffic light approaching warning",
|
47 |
-
"red and white triangle with person walking warning",
|
48 |
-
"red and white triangle with child and person walking warning",
|
49 |
-
"red and white triangle with bicyle warning",
|
50 |
-
"red and white triangle with snowflake / ice warning",
|
51 |
-
"red and white triangle with deer warning",
|
52 |
-
"white circle with gray strike bar no speed limit",
|
53 |
-
"blue circle with white right turn arrow mandatory",
|
54 |
-
"blue circle with white left turn arrow mandatory",
|
55 |
-
"blue circle with white forward arrow mandatory",
|
56 |
-
"blue circle with white forward or right turn arrow mandatory",
|
57 |
-
"blue circle with white forward or left turn arrow mandatory",
|
58 |
-
"blue circle with white keep right arrow mandatory",
|
59 |
-
"blue circle with white keep left arrow mandatory",
|
60 |
-
"blue circle with white arrows indicating a traffic circle",
|
61 |
-
"white circle with gray strike bar indicating no passing for cars has ended",
|
62 |
-
"white circle with gray strike bar indicating no passing for trucks has ended",
|
63 |
-
]
|
64 |
-
|
65 |
-
clip_templates = [
|
66 |
-
lambda c: f'a zoomed in photo of a "{c}" traffic sign.',
|
67 |
-
lambda c: f'a centered photo of a "{c}" traffic sign.',
|
68 |
-
lambda c: f'a close up photo of a "{c}" traffic sign.',
|
69 |
-
]
|
70 |
-
|
71 |
-
def _info(self):
|
72 |
-
return datasets.DatasetInfo(
|
73 |
-
description="GTSRB dataset for image classification.",
|
74 |
-
features=datasets.Features(
|
75 |
-
{
|
76 |
-
"image": datasets.Image(),
|
77 |
-
"label": datasets.ClassLabel(names=self.classnames),
|
78 |
-
}
|
79 |
-
),
|
80 |
-
supervised_keys=("image", "label"),
|
81 |
-
task_templates=[datasets.ImageClassification(image_column="image", label_column="label")],
|
82 |
-
)
|
83 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|