michelecafagna26 commited on
Commit
c1bc82d
1 Parent(s): 9150214

Update hl.py

Browse files
Files changed (1) hide show
  1. hl.py +3 -3
hl.py CHANGED
@@ -93,21 +93,21 @@ class HL(datasets.GeneratorBasedBuilder):
93
  name=datasets.Split.TRAIN,
94
  gen_kwargs={
95
  "annotation_file_path": annotation_files[0],
96
- "images": dl_manager.iter_archive(archive),
97
  },
98
  ),
99
  datasets.SplitGenerator(
100
  name=datasets.Split.TEST,
101
  gen_kwargs={
102
  "annotation_file_path": annotation_files[1],
103
- "images": dl_manager.iter_archive(archive),
104
  },
105
  ),
106
  ]
107
 
108
  def _generate_examples(self, annotation_file_path, images):
 
109
  idx = 0
110
-
111
  with open(annotation_file_path, "r") as fp:
112
  metadata = {json.loads(item)['file_name']: json.loads(item) for item in fp}
113
 
 
93
  name=datasets.Split.TRAIN,
94
  gen_kwargs={
95
  "annotation_file_path": annotation_files[0],
96
+ "images": dl_manager.iter_archive(image_files),
97
  },
98
  ),
99
  datasets.SplitGenerator(
100
  name=datasets.Split.TEST,
101
  gen_kwargs={
102
  "annotation_file_path": annotation_files[1],
103
+ "images": dl_manager.iter_archive(image_files),
104
  },
105
  ),
106
  ]
107
 
108
  def _generate_examples(self, annotation_file_path, images):
109
+
110
  idx = 0
 
111
  with open(annotation_file_path, "r") as fp:
112
  metadata = {json.loads(item)['file_name']: json.loads(item) for item in fp}
113