Skip to content

Commit 0613291

Browse files
committed
Fix TypeError: RetinaFace.detect() got an unexpected keyword argument 'threshold'
1 parent 26c84d2 commit 0613291

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

insightface_func/face_detect_crop_multi.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ def prepare(self, ctx_id, det_thresh=0.5, det_size=(640, 640), mode ='None'):
6262

6363
def get(self, img, crop_size, max_num=0):
6464
bboxes, kpss = self.det_model.detect(img,
65-
threshold=self.det_thresh,
6665
max_num=max_num,
6766
metric='default')
6867
if bboxes.shape[0] == 0:

insightface_func/face_detect_crop_single.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ def prepare(self, ctx_id, det_thresh=0.5, det_size=(640, 640), mode ='None'):
6262

6363
def get(self, img, crop_size, max_num=0):
6464
bboxes, kpss = self.det_model.detect(img,
65-
threshold=self.det_thresh,
6665
max_num=max_num,
6766
metric='default')
6867
if bboxes.shape[0] == 0:

0 commit comments

Comments
 (0)