arxyzan commited on
Commit
bd522aa
·
1 Parent(s): a655d94

Update persian-license-plate-v1.py

Browse files
Files changed (1) hide show
  1. persian-license-plate-v1.py +2 -2
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_, {"label": label, "image_path": image_path}
 
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}