Skip to content

Commit 446f1cf

Browse files
authored
fix bug when layout_predictor is None (#13279)
1 parent 43bd2ad commit 446f1cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ppstructure/predict_system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def __call__(self, img, return_ocr_result_in_table=False, img_idx=0):
121121
time_dict["layout"] += elapse
122122
else:
123123
h, w = ori_im.shape[:2]
124-
layout_res = [dict(bbox=None, label="table")]
124+
layout_res = [dict(bbox=None, label="table", score=0.0)]
125125

126126
# As reported in issues such as #10270 and #11665, the old
127127
# implementation, which recognizes texts from the layout regions,

0 commit comments

Comments
 (0)