mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-06-03 21:53:39 +08:00
update trt dynamic shape for v3 rec
This commit is contained in:
parent
657f29e8b7
commit
7756e66b8e
@ -271,7 +271,7 @@ def create_predictor(args, mode, logger):
|
||||
elif mode == "rec":
|
||||
if args.rec_algorithm != "CRNN":
|
||||
use_dynamic_shape = False
|
||||
imgH = int(args.rec_image_shape.split(',')[1])
|
||||
imgH = int(args.rec_image_shape.split(',')[-2])
|
||||
min_input_shape = {"x": [1, 3, imgH, 10]}
|
||||
max_input_shape = {"x": [args.rec_batch_num, 3, imgH, 1536]}
|
||||
opt_input_shape = {"x": [args.rec_batch_num, 3, imgH, 320]}
|
||||
|
Loading…
x
Reference in New Issue
Block a user