sheikh commited on
Commit
7ff0d71
·
1 Parent(s): c82ec7e

Update layoutlmv3.py

Browse files
Files changed (1) hide show
  1. layoutlmv3.py +1 -1
layoutlmv3.py CHANGED
@@ -143,4 +143,4 @@ class Funsd(datasets.GeneratorBasedBuilder):
143
  #cur_line_bboxes = self.get_line_bbox(cur_line_bboxes)
144
  #bboxes.extend(cur_line_bboxes)
145
  yield guid, {"id": str(guid), "tokens": tokens, "bboxes": bboxes, "ner_tags": ner_tags,
146
- "image": image}
 
143
  #cur_line_bboxes = self.get_line_bbox(cur_line_bboxes)
144
  #bboxes.extend(cur_line_bboxes)
145
  yield guid, {"id": str(guid), "tokens": tokens, "bboxes": bboxes, "ner_tags": ner_tags,
146
+ "image": image, "image_path":image_path}