Fix bug: set det_thresh inside self.det_model

This commit is contained in:
Wok
2023-09-21 11:12:48 +02:00
parent 06fa4e58a1
commit ac45dd43e4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ class Face_detect_crop:
def prepare(self, ctx_id, det_thresh=0.5, det_size=(640, 640), mode ='None'):
self.det_thresh = det_thresh
self.det_model.det_thresh = det_thresh
self.mode = mode
assert det_size is not None
print('set det-size:', det_size)
+1 -1
View File
@@ -49,7 +49,7 @@ class Face_detect_crop:
def prepare(self, ctx_id, det_thresh=0.5, det_size=(640, 640), mode ='None'):
self.det_thresh = det_thresh
self.det_model.det_thresh = det_thresh
self.mode = mode
assert det_size is not None
print('set det-size:', det_size)