From f89d90897909f4707164e2dbc77a19ec5f9dd178 Mon Sep 17 00:00:00 2001 From: HydrogenSulfate <490868991@qq.com> Date: Wed, 11 May 2022 19:21:03 +0800 Subject: [PATCH] Update predict_det.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 删除冗余代码 --- deploy/python/predict_det.py | 1 - 1 file changed, 1 deletion(-) diff --git a/deploy/python/predict_det.py b/deploy/python/predict_det.py index 962bd3a1..37a7bf50 100644 --- a/deploy/python/predict_det.py +++ b/deploy/python/predict_det.py @@ -128,7 +128,6 @@ class DetPredictor(Predictor): results = [] if reduce(lambda x, y: x * y, np_boxes.shape) < 6: print('[WARNNING] No object detected.') - results = [] else: results = self.parse_det_results( np_boxes, self.config["Global"]["threshold"], -- GitLab