From 06fa4e58a1172d9b5437755dd73b6d6219c42cb7 Mon Sep 17 00:00:00 2001 From: Wok Date: Thu, 21 Sep 2023 00:15:49 +0200 Subject: [PATCH] Fix TypeError: RetinaFace.detect() got an unexpected keyword argument 'threshold' --- insightface_func/face_detect_crop_multi.py | 1 - insightface_func/face_detect_crop_single.py | 1 - 2 files changed, 2 deletions(-) diff --git a/insightface_func/face_detect_crop_multi.py b/insightface_func/face_detect_crop_multi.py index d75c36b..1c5035a 100644 --- a/insightface_func/face_detect_crop_multi.py +++ b/insightface_func/face_detect_crop_multi.py @@ -62,7 +62,6 @@ class Face_detect_crop: def get(self, img, crop_size, max_num=0): bboxes, kpss = self.det_model.detect(img, - threshold=self.det_thresh, max_num=max_num, metric='default') if bboxes.shape[0] == 0: diff --git a/insightface_func/face_detect_crop_single.py b/insightface_func/face_detect_crop_single.py index f3f648f..9ab7a9b 100644 --- a/insightface_func/face_detect_crop_single.py +++ b/insightface_func/face_detect_crop_single.py @@ -62,7 +62,6 @@ class Face_detect_crop: def get(self, img, crop_size, max_num=0): bboxes, kpss = self.det_model.detect(img, - threshold=self.det_thresh, max_num=max_num, metric='default') if bboxes.shape[0] == 0: