diff --git a/tools/infer/utility.py b/tools/infer/utility.py index c28816653470bc1fb1f30d200f194641018206bb..f437056ec7b10e28e626d2028b6401cebc647bb1 100644 --- a/tools/infer/utility.py +++ b/tools/infer/utility.py @@ -261,7 +261,7 @@ def create_predictor(args, mode, logger): opt_input_shape.update(opt_pact_shape) elif mode == "rec": min_input_shape = {"x": [1, 3, 32, 10]} - max_input_shape = {"x": [args.rec_batch_num, 3, 32, 1024]} + max_input_shape = {"x": [args.rec_batch_num, 3, 32, 1536]} opt_input_shape = {"x": [args.rec_batch_num, 3, 32, 320]} elif mode == "cls": min_input_shape = {"x": [1, 3, 48, 10]}