mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-12-28 07:28:55 +00:00
Merge pull request #6285 from littletomatodonkey/tmp
fix rec prediction for trt7
This commit is contained in:
commit
0571a41db1
@ -275,6 +275,7 @@ def create_predictor(args, mode, logger):
|
||||
min_input_shape = {"x": [1, 3, imgH, 10]}
|
||||
max_input_shape = {"x": [args.rec_batch_num, 3, imgH, 2304]}
|
||||
opt_input_shape = {"x": [args.rec_batch_num, 3, imgH, 320]}
|
||||
config.exp_disable_tensorrt_ops(["transpose2"])
|
||||
elif mode == "cls":
|
||||
min_input_shape = {"x": [1, 3, 48, 10]}
|
||||
max_input_shape = {"x": [args.rec_batch_num, 3, 48, 1024]}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user