Datasets:
michelecafagna26
commited on
Commit
•
e75b63f
1
Parent(s):
c4764fb
Update hl.py
Browse files
hl.py
CHANGED
@@ -112,7 +112,7 @@ class HL(datasets.GeneratorBasedBuilder):
|
|
112 |
assert Path(annotation_file_path).suffix == ".jsonl"
|
113 |
|
114 |
with open(annotation_file_path, "r") as fp:
|
115 |
-
metadata = {json.
|
116 |
|
117 |
# This loop relies on the ordering of the files in the archive:
|
118 |
# Annotation files come first, then the images.
|
|
|
112 |
assert Path(annotation_file_path).suffix == ".jsonl"
|
113 |
|
114 |
with open(annotation_file_path, "r") as fp:
|
115 |
+
metadata = {json.load(item)['file_name']: json.load(item) for item in fp}
|
116 |
|
117 |
# This loop relies on the ordering of the files in the archive:
|
118 |
# Annotation files come first, then the images.
|