From b8b6f2f0a1ee3784e0016d320e81402a3f2fe6f2 Mon Sep 17 00:00:00 2001 From: Double_V Date: Tue, 7 Dec 2021 18:15:43 +0800 Subject: [PATCH] add no_grad --- tools/infer_det.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/infer_det.py b/tools/infer_det.py index ce16da8d..5ce1f2ff 100755 --- a/tools/infer_det.py +++ b/tools/infer_det.py @@ -52,7 +52,7 @@ def draw_det_res(dt_boxes, config, img, img_name, save_path): cv2.imwrite(save_path, src_im) logger.info("The detected Image saved in {}".format(save_path)) - +@paddle.no_grad() def main(): global_config = config['Global'] -- GitLab