Skip to content

Commit

Permalink
Update face_analysis.py
Browse files Browse the repository at this point in the history
rename param name.
  • Loading branch information
ease-zh authored Nov 1, 2024
1 parent 00595a7 commit a333044
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python-package/insightface/app/face_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ def prepare(self, ctx_id, det_thresh=0.5, det_size=(640, 640)):
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 = []
Expand Down

0 comments on commit a333044

Please sign in to comment.