Datasets:
yasumasaonoe
commited on
Update docci.py
Browse files
docci.py
CHANGED
@@ -124,7 +124,7 @@ class DOCCI(datasets.GeneratorBasedBuilder):
|
|
124 |
image_path = os.path.join(data["images"], ex["image_file"])
|
125 |
|
126 |
_ex = {
|
127 |
-
"image":
|
128 |
"example_id": ex["example_id"],
|
129 |
"split": ex["split"],
|
130 |
"image_file": ex["image_file"],
|
@@ -148,7 +148,7 @@ class DOCCI(datasets.GeneratorBasedBuilder):
|
|
148 |
continue
|
149 |
|
150 |
_ex = {
|
151 |
-
"image":
|
152 |
"example_id": example_id,
|
153 |
"split": split,
|
154 |
"image_file": ex["image_file"],
|
|
|
124 |
image_path = os.path.join(data["images"], ex["image_file"])
|
125 |
|
126 |
_ex = {
|
127 |
+
"image": image_path,
|
128 |
"example_id": ex["example_id"],
|
129 |
"split": ex["split"],
|
130 |
"image_file": ex["image_file"],
|
|
|
148 |
continue
|
149 |
|
150 |
_ex = {
|
151 |
+
"image": image_path,
|
152 |
"example_id": example_id,
|
153 |
"split": split,
|
154 |
"image_file": ex["image_file"],
|