Skip to content

Commit ac5313d

Browse files
authored
fix bugs for SLANet infer (#13861)
1 parent 284a20b commit ac5313d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ppocr/postprocess/table_postprocess.py

+3
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,11 @@ def decode_label(self, batch):
129129

130130
def _bbox_decode(self, bbox, shape):
131131
h, w, ratio_h, ratio_w, pad_h, pad_w = shape
132+
h, w = pad_h, pad_w
132133
bbox[0::2] *= w
133134
bbox[1::2] *= h
135+
bbox[0::2] /= ratio_w
136+
bbox[1::2] /= ratio_h
134137
return bbox
135138

136139

0 commit comments

Comments
 (0)