Update layoutlm_resume_data.py
Browse files- layoutlm_resume_data.py +1 -1
layoutlm_resume_data.py
CHANGED
|
@@ -121,7 +121,7 @@ class ResumeData(datasets.GeneratorBasedBuilder):
|
|
| 121 |
with open(file_path, "r", encoding="utf8") as f:
|
| 122 |
data = json.load(f)
|
| 123 |
image_path = os.path.join(img_dir, file)
|
| 124 |
-
image_path = image_path.replace("json", "
|
| 125 |
image, size = load_image(image_path)
|
| 126 |
for item in data["form"]:
|
| 127 |
cur_line_bboxes = []
|
|
|
|
| 121 |
with open(file_path, "r", encoding="utf8") as f:
|
| 122 |
data = json.load(f)
|
| 123 |
image_path = os.path.join(img_dir, file)
|
| 124 |
+
image_path = image_path.replace("json", "jpeg")
|
| 125 |
image, size = load_image(image_path)
|
| 126 |
for item in data["form"]:
|
| 127 |
cur_line_bboxes = []
|