diff --git a/tools/infer/utility.py b/tools/infer/utility.py index bc095baa29e18ff6e97522bd2bfd1639fe7e79dd..4f4caabaf89a87a1c5d17b2f48e7dd62d9f88ebf 100644 --- a/tools/infer/utility.py +++ b/tools/infer/utility.py @@ -276,6 +276,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]}