From 41f73e31bc83db5ce81383e88e94d71a0b085347 Mon Sep 17 00:00:00 2001 From: WenmuZhou Date: Tue, 13 Jul 2021 12:23:41 +0800 Subject: [PATCH] fix starttime noe define error --- tools/infer/predict_cls.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/infer/predict_cls.py b/tools/infer/predict_cls.py index 1a0cf356..8f2a1361 100755 --- a/tools/infer/predict_cls.py +++ b/tools/infer/predict_cls.py @@ -112,7 +112,6 @@ class TextClassifier(object): if '180' in label and score > self.cls_thresh: img_list[indices[beg_img_no + rno]] = cv2.rotate( img_list[indices[beg_img_no + rno]], 1) - elapse = time.time() - starttime return img_list, cls_res, elapse -- GitLab