sheikh commited on
Commit
c04ef71
·
1 Parent(s): bc87bcc

Update SLR.py

Browse files
Files changed (1) hide show
  1. SLR.py +2 -1
SLR.py CHANGED
@@ -75,6 +75,7 @@ class SLR(datasets.GeneratorBasedBuilder):
75
  )
76
  ),
77
  "image": datasets.Array3D(shape=(3, 224, 224), dtype="uint8"),
 
78
  }
79
  ),
80
  supervised_keys=None,
@@ -117,4 +118,4 @@ class SLR(datasets.GeneratorBasedBuilder):
117
  bbox=item['bbox']
118
  bboxes.append(bbox)
119
 
120
- yield guid, {"id": str(guid), "tokens": tokens, "bboxes": bboxes, "ner_tags": ner_tags, "image": image}
 
75
  )
76
  ),
77
  "image": datasets.Array3D(shape=(3, 224, 224), dtype="uint8"),
78
+ "image_path": datasets.Value("string"),
79
  }
80
  ),
81
  supervised_keys=None,
 
118
  bbox=item['bbox']
119
  bboxes.append(bbox)
120
 
121
+ yield guid, {"id": str(guid), "tokens": tokens, "bboxes": bboxes, "ner_tags": ner_tags, "image": image, "image_path": image_path}