update trt dynamic shape for v3 rec
parent
f6532a0e51
commit
657f29e8b7
|
@ -271,9 +271,10 @@ def create_predictor(args, mode, logger):
|
|||
elif mode == "rec":
|
||||
if args.rec_algorithm != "CRNN":
|
||||
use_dynamic_shape = False
|
||||
min_input_shape = {"x": [1, 3, 32, 10]}
|
||||
max_input_shape = {"x": [args.rec_batch_num, 3, 32, 1536]}
|
||||
opt_input_shape = {"x": [args.rec_batch_num, 3, 32, 320]}
|
||||
imgH = int(args.rec_image_shape.split(',')[1])
|
||||
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]}
|
||||
elif mode == "cls":
|
||||
min_input_shape = {"x": [1, 3, 48, 10]}
|
||||
max_input_shape = {"x": [args.rec_batch_num, 3, 48, 1024]}
|
||||
|
|
Loading…
Reference in New Issue