Datasets:
mariosasko
commited on
Commit
•
02dd9ab
1
Parent(s):
cb23d0e
Make dataset streamable
Browse files- brill_iconclass.py +1 -2
brill_iconclass.py
CHANGED
@@ -73,5 +73,4 @@ class BrillIconclass(datasets.GeneratorBasedBuilder):
|
|
73 |
data = json.load(f)
|
74 |
for row, item in enumerate(data.items()):
|
75 |
filepath, labels = item
|
76 |
-
image
|
77 |
-
yield row, {"image": image, "label": labels}
|
|
|
73 |
data = json.load(f)
|
74 |
for row, item in enumerate(data.items()):
|
75 |
filepath, labels = item
|
76 |
+
yield row, {"image": os.path.join(data_dir, filepath), "label": labels}
|
|