Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 63306e7

Browse filesBrowse files
committed
Fix bug: set det_thresh inside self.det_model
1 parent 0613291 commit 63306e7
Copy full SHA for 63306e7

File tree

2 files changed

+2
-2
lines changed
Filter options

2 files changed

+2
-2
lines changed

‎insightface_func/face_detect_crop_multi.py

Copy file name to clipboardExpand all lines: insightface_func/face_detect_crop_multi.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: insightface_func/face_detect_crop_single.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.