Datasets:
Update persian-license-plate-v1.py
Browse files
persian-license-plate-v1.py
CHANGED
@@ -39,8 +39,8 @@ class PersianLicensePlate(datasets.GeneratorBasedBuilder):
|
|
39 |
description=_DESCRIPTION,
|
40 |
features=datasets.Features(
|
41 |
{
|
42 |
-
"label": datasets.Value("string"),
|
43 |
"image_path": datasets.Value("string"),
|
|
|
44 |
}
|
45 |
),
|
46 |
citation=_CITATION,
|
@@ -88,4 +88,4 @@ class PersianLicensePlate(datasets.GeneratorBasedBuilder):
|
|
88 |
for id_, row in enumerate(csv_reader):
|
89 |
label, filename = row
|
90 |
image_path = os.path.join(dataset_dir, filename)
|
91 |
-
yield id_, {"
|
|
|
39 |
description=_DESCRIPTION,
|
40 |
features=datasets.Features(
|
41 |
{
|
|
|
42 |
"image_path": datasets.Value("string"),
|
43 |
+
"label": datasets.Value("string"),
|
44 |
}
|
45 |
),
|
46 |
citation=_CITATION,
|
|
|
88 |
for id_, row in enumerate(csv_reader):
|
89 |
label, filename = row
|
90 |
image_path = os.path.join(dataset_dir, filename)
|
91 |
+
yield id_, {"image_path": image_path, "label": label}
|