From b1c36d9c9c63b3f3745beacf2f7e130ec30e88bd Mon Sep 17 00:00:00 2001 From: wangxinxin08 <69842442+wangxinxin08@users.noreply.github.com> Date: Sat, 20 Nov 2021 13:51:55 +0800 Subject: [PATCH] increase trt workspace size to 32M while using dcn trt plugin (#4629) --- deploy/python/infer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/python/infer.py b/deploy/python/infer.py index bc268c565..752a07efa 100644 --- a/deploy/python/infer.py +++ b/deploy/python/infer.py @@ -537,7 +537,7 @@ def load_predictor(model_dir, } if run_mode in precision_map.keys(): config.enable_tensorrt_engine( - workspace_size=1 << 10, + workspace_size=1 << 25, max_batch_size=batch_size, min_subgraph_size=min_subgraph_size, precision_mode=precision_map[run_mode], @@ -680,7 +680,7 @@ def predict_video(detector, camera_id): if not os.path.exists(FLAGS.output_dir): os.makedirs(FLAGS.output_dir) out_path = os.path.join(FLAGS.output_dir, video_out_name) - fourcc = cv2.VideoWriter_fourcc(*'mp4v') + fourcc = cv2.VideoWriter_fourcc(* 'mp4v') writer = cv2.VideoWriter(out_path, fourcc, fps, (width, height)) index = 1 while (1): -- GitLab