Skip to content

Commit

Permalink
fix bug when layout_predictor is None (PaddlePaddle#13279)
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatV committed Jul 6, 2024
1 parent f1c47af commit 8e87de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ppstructure/predict_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def __call__(self, img, return_ocr_result_in_table=False, img_idx=0):
time_dict["layout"] += elapse
else:
h, w = ori_im.shape[:2]
layout_res = [dict(bbox=None, label="table")]
layout_res = [dict(bbox=None, label="table", score=0.0)]

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

0 comments on commit 8e87de4

Please sign in to comment.