mirror of
https://github.com/deepinsight/insightface.git
synced 2025-12-30 08:02:27 +00:00
Update face_analysis.py
rename param name.
This commit is contained in:
@@ -55,10 +55,10 @@ class FaceAnalysis:
|
||||
else:
|
||||
model.prepare(ctx_id)
|
||||
|
||||
def get(self, img, max_num=0, metric='default'):
|
||||
def get(self, img, max_num=0, det_metric='default'):
|
||||
bboxes, kpss = self.det_model.detect(img,
|
||||
max_num=max_num,
|
||||
metric=metric)
|
||||
metric=det_metric)
|
||||
if bboxes.shape[0] == 0:
|
||||
return []
|
||||
ret = []
|
||||
|
||||
Reference in New Issue
Block a user