mirror of
https://github.com/iperov/DeepFaceLive
synced 2025-08-14 02:37:01 -07:00
removed none choice
This commit is contained in:
parent
b69beac461
commit
4a35635538
3 changed files with 3 additions and 3 deletions
|
@ -83,7 +83,7 @@ class FaceDetectorWorker(BackendWorker):
|
|||
cs.temporal_smoothing.call_on_number(self.on_cs_temporal_smoothing)
|
||||
|
||||
cs.detector_type.enable()
|
||||
cs.detector_type.set_choices(DetectorType, DetectorTypeNames, none_choice_name='@misc.menu_select')
|
||||
cs.detector_type.set_choices(DetectorType, DetectorTypeNames, none_choice_name=None)
|
||||
cs.detector_type.select(state.detector_type if state.detector_type is not None else DetectorType.YOLOV5)
|
||||
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ class FaceMarkerWorker(BackendWorker):
|
|||
cs.temporal_smoothing.call_on_number(self.on_cs_temporal_smoothing)
|
||||
|
||||
cs.marker_type.enable()
|
||||
cs.marker_type.set_choices(MarkerType, MarkerTypeNames, none_choice_name='@misc.menu_select')
|
||||
cs.marker_type.set_choices(MarkerType, MarkerTypeNames, none_choice_name=None)
|
||||
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):
|
||||
|
|
|
@ -38,7 +38,7 @@ class QFaceDetector(QBackendPanel):
|
|||
q_device = QComboBoxCSWDynamicSingleSwitch(cs.device, reflect_state_widgets=[q_device_label])
|
||||
|
||||
q_fixed_window_size_label = QLabelPopupInfo(label=L('@QFaceDetector.window_size'), popup_info_text=L('@QFaceDetector.help.window_size') )
|
||||
q_fixed_window_size = QSpinBoxCSWNumber(cs.fixed_window_size, reflect_state_widgets=[q_fixed_window_size_label])
|
||||
q_fixed_window_size = QSpinBoxCSWNumber(cs.fixed_window_size, reflect_state_widgets=[q_fixed_window_size_label, q_detected_faces])
|
||||
|
||||
q_threshold_label = QLabelPopupInfo(label=L('@QFaceDetector.threshold'), popup_info_text=L('@QFaceDetector.help.threshold') )
|
||||
q_threshold = QSpinBoxCSWNumber(cs.threshold, reflect_state_widgets=[q_threshold_label])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue