Skip to content

Commit 037c7f7

Browse files
committed
Fix bug: set det_thresh inside self.det_model
1 parent a76a8ea commit 037c7f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

insightface_func/face_detect_crop_multi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __init__(self, name, root='~/.insightface_func/models'):
4949

5050

5151
def prepare(self, ctx_id, det_thresh=0.5, det_size=(640, 640), mode ='None'):
52-
self.det_thresh = det_thresh
52+
self.det_model.det_thresh = det_thresh
5353
self.mode = mode
5454
assert det_size is not None
5555
print('set det-size:', det_size)

insightface_func/face_detect_crop_single.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __init__(self, name, root='~/.insightface_func/models'):
4949

5050

5151
def prepare(self, ctx_id, det_thresh=0.5, det_size=(640, 640), mode ='None'):
52-
self.det_thresh = det_thresh
52+
self.det_model.det_thresh = det_thresh
5353
self.mode = mode
5454
assert det_size is not None
5555
print('set det-size:', det_size)

0 commit comments

Comments
 (0)