Skip to content

Commit 364e0a5

Browse files
liuhongen1234567TingquanGao
authored andcommitted
repair bug from save2json
1 parent 50d1b81 commit 364e0a5

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

paddlex/inference/results/chat_ocr.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ def save_to_json(self, save_path):
6565
layout_save_path = f"{save_path}_layout.jpg"
6666
ocr_save_path = f"{save_path}_ocr.jpg"
6767
table_save_path = f"{save_path}_table"
68-
self["input_path"] = layout_save_path
69-
self["layout_result"]["input_path"] = layout_save_path
70-
self["layout_parsing_result"]["input_path"] = layout_save_path
71-
self["ocr_result"]["input_path"] = ocr_save_path
7268
table_result_num = len(self["table_result"])
7369
for idx in range(table_result_num):
7470
self["table_result"][idx]["input_path"] = "{}_{:04d}".format(

paddlex/inference/results/formula_rec.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,6 @@ def save_to_json(self, save_path):
164164
save_path = Path(save_path).stem
165165

166166
formula_save_path = f"{save_path}_formula.jpg"
167-
self["input_path"] = formula_save_path
168-
self["layout_result"]["input_path"] = formula_save_path
169167
if not str(save_path).endswith(".json"):
170168
save_path = "{}.json".format(save_path)
171169
super().save_to_json(save_path)

0 commit comments

Comments
 (0)