mirror of
https://github.com/iperov/DeepFaceLive
synced 2025-08-14 02:37:01 -07:00
set default detector and marker
This commit is contained in:
parent
77dd13bfcb
commit
d3df0d186d
2 changed files with 2 additions and 2 deletions
|
@ -84,7 +84,7 @@ class FaceDetectorWorker(BackendWorker):
|
|||
|
||||
cs.detector_type.enable()
|
||||
cs.detector_type.set_choices(DetectorType, DetectorTypeNames, none_choice_name='@misc.menu_select')
|
||||
cs.detector_type.select(state.detector_type)
|
||||
cs.detector_type.select(state.detector_type if state.detector_type is not None else DetectorType.YOLOV5)
|
||||
|
||||
|
||||
def on_cs_detector_type(self, idx, detector_type):
|
||||
|
|
|
@ -58,7 +58,7 @@ class FaceMarkerWorker(BackendWorker):
|
|||
|
||||
cs.marker_type.enable()
|
||||
cs.marker_type.set_choices(MarkerType, MarkerTypeNames, none_choice_name='@misc.menu_select')
|
||||
cs.marker_type.select(state.marker_type)
|
||||
cs.marker_type.select(state.marker_type if state.marker_type is not None else MarkerType.GOOGLE_FACEMESH)
|
||||
|
||||
def on_cs_marker_type(self, idx, marker_type):
|
||||
state, cs = self.get_state(), self.get_control_sheet()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue