Skip to content

Commit

Permalink
fix bugs for SLANet infer (PaddlePaddle#13861)
Browse files Browse the repository at this point in the history
  • Loading branch information
liu-jiaxuan authored Sep 13, 2024
1 parent 284a20b commit ac5313d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ppocr/postprocess/table_postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,11 @@ def decode_label(self, batch):

def _bbox_decode(self, bbox, shape):
h, w, ratio_h, ratio_w, pad_h, pad_w = shape
h, w = pad_h, pad_w
bbox[0::2] *= w
bbox[1::2] *= h
bbox[0::2] /= ratio_w
bbox[1::2] /= ratio_h
return bbox


Expand Down

0 comments on commit ac5313d

Please sign in to comment.