Datasets:

Languages:
English
ArXiv:
License:
yasumasaonoe commited on
Commit
781ae43
·
verified ·
1 Parent(s): 866639d

Update docci.py

Browse files
Files changed (1) hide show
  1. docci.py +2 -2
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": str(image_path.absolute()),
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": str(image_path.absolute()),
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"],