set default detector and marker

This commit is contained in:
iperov 2021-11-18 21:44:26 +04:00
commit d3df0d186d
2 changed files with 2 additions and 2 deletions

View file

@ -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):

View file

@ -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()