mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-12-26 22:48:21 +00:00
fix SAR inference, when batch size>1, norm_img_batch and valid_ratios shapes do not match (#11238)
This commit is contained in:
parent
73c08b7e4c
commit
fb38d0be18
@ -584,7 +584,7 @@ class TextRecognizer(object):
|
||||
inputs = [
|
||||
norm_img_batch,
|
||||
np.array(
|
||||
[valid_ratios], dtype=np.float32),
|
||||
[valid_ratios], dtype=np.float32).T,
|
||||
]
|
||||
if self.use_onnx:
|
||||
input_dict = {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user