Datasets:
Tasks:
Image Classification
Formats:
parquet
Sub-tasks:
multi-label-image-classification
Size:
10K - 100K
License:
Bazyl commited on
Commit ·
7535f34
1
Parent(s): 446bece
update dataset
Browse files- dataset_infos.json +2 -2
- gtsrb.py +3 -5
dataset_infos.json
CHANGED
|
@@ -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:3e5b24f8456e9215167843b2858caee2bfbd4304f839e4050d88f1f1c092f15b
|
| 3 |
+
size 3066
|
gtsrb.py
CHANGED
|
@@ -15,10 +15,7 @@
|
|
| 15 |
|
| 16 |
# Lint as: python3
|
| 17 |
"""GTSRB: German Traffic Sign Recognition Benchmark."""
|
| 18 |
-
|
| 19 |
-
import tarfile
|
| 20 |
import csv
|
| 21 |
-
import pandas as pd
|
| 22 |
|
| 23 |
import datasets
|
| 24 |
from datasets import Dataset, DatasetDict
|
|
@@ -76,7 +73,8 @@ _FEATURES = datasets.Features({
|
|
| 76 |
"Roi.X2": datasets.Value("uint8"),
|
| 77 |
"Roi.Y2": datasets.Value("uint8"),
|
| 78 |
"ClassId": datasets.Value("uint8"),
|
| 79 |
-
"Path": datasets.Image("png"),
|
|
|
|
| 80 |
})
|
| 81 |
|
| 82 |
_URL = "https://github.com/bazylhorsey/gtsrb/archive/refs/tags/0.0.0.tar.gz"
|
|
@@ -124,7 +122,7 @@ class GTSRB(datasets.GeneratorBasedBuilder):
|
|
| 124 |
)
|
| 125 |
|
| 126 |
def _split_generators(self, dl_manager):
|
| 127 |
-
|
| 128 |
print("success")
|
| 129 |
return [
|
| 130 |
datasets.SplitGenerator(
|
|
|
|
| 15 |
|
| 16 |
# Lint as: python3
|
| 17 |
"""GTSRB: German Traffic Sign Recognition Benchmark."""
|
|
|
|
|
|
|
| 18 |
import csv
|
|
|
|
| 19 |
|
| 20 |
import datasets
|
| 21 |
from datasets import Dataset, DatasetDict
|
|
|
|
| 73 |
"Roi.X2": datasets.Value("uint8"),
|
| 74 |
"Roi.Y2": datasets.Value("uint8"),
|
| 75 |
"ClassId": datasets.Value("uint8"),
|
| 76 |
+
# "Path": datasets.Image("png"),
|
| 77 |
+
"Path": datasets.Value("string"),
|
| 78 |
})
|
| 79 |
|
| 80 |
_URL = "https://github.com/bazylhorsey/gtsrb/archive/refs/tags/0.0.0.tar.gz"
|
|
|
|
| 122 |
)
|
| 123 |
|
| 124 |
def _split_generators(self, dl_manager):
|
| 125 |
+
|
| 126 |
print("success")
|
| 127 |
return [
|
| 128 |
datasets.SplitGenerator(
|