Update predict_det.py

删除冗余代码
pull/1912/head
HydrogenSulfate 2022-05-11 19:21:03 +08:00 committed by GitHub
parent 5f9313698e
commit f89d908979
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -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"],