Datasets:
Commit
•
17143b1
1
Parent(s):
cb23d0e
Make dataset streamable (#4)
Browse files- Make dataset streamable (02dd9ab032273d1007d1de342838b72d3b4e6a61)
- 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}
|
|