Fix TypeError: RetinaFace.detect() got an unexpected keyword argument 'threshold'

This commit is contained in:
Wok
2023-09-21 00:15:49 +02:00
parent bd7b7686a1
commit 06fa4e58a1
2 changed files with 0 additions and 2 deletions
@@ -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:
@@ -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: