From ea95ae753df650245b3747017d18285a8ac49cbc Mon Sep 17 00:00:00 2001 From: Kinar Date: Mon, 4 Dec 2023 04:12:22 -0800 Subject: [PATCH] Uncommented configuring options for Holistic Landmarker --- .../python/vision/holistic_landmarker.py | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/mediapipe/tasks/python/vision/holistic_landmarker.py b/mediapipe/tasks/python/vision/holistic_landmarker.py index a1877ff67..940663230 100644 --- a/mediapipe/tasks/python/vision/holistic_landmarker.py +++ b/mediapipe/tasks/python/vision/holistic_landmarker.py @@ -293,29 +293,29 @@ class HolisticLandmarkerOptions: base_options=base_options_proto ) # Configure face detector and face landmarks detector options. - # holistic_landmarker_options_proto.face_detector_graph_options.min_detection_confidence = ( - # self.min_face_detection_confidence - # ) - # holistic_landmarker_options_proto.face_detector_graph_options.min_suppression_threshold = ( - # self.min_face_suppression_threshold - # ) - # holistic_landmarker_options_proto.face_landmarks_detector_graph_options.min_detection_confidence = ( - # self.min_face_landmarks_confidence - # ) - # # Configure pose detector and pose landmarks detector options. - # holistic_landmarker_options_proto.pose_detector_graph_options.min_detection_confidence = ( - # self.min_pose_detection_confidence - # ) - # holistic_landmarker_options_proto.pose_detector_graph_options.min_suppression_threshold = ( - # self.min_pose_suppression_threshold - # ) - # holistic_landmarker_options_proto.face_landmarks_detector_graph_options.min_detection_confidence = ( - # self.min_pose_landmarks_confidence - # ) - # # Configure hand landmarks detector options. - # holistic_landmarker_options_proto.hand_landmarks_detector_graph_options.min_detection_confidence = ( - # self.min_hand_landmarks_confidence - # ) + holistic_landmarker_options_proto.face_detector_graph_options.min_detection_confidence = ( + self.min_face_detection_confidence + ) + holistic_landmarker_options_proto.face_detector_graph_options.min_suppression_threshold = ( + self.min_face_suppression_threshold + ) + holistic_landmarker_options_proto.face_landmarks_detector_graph_options.min_detection_confidence = ( + self.min_face_landmarks_confidence + ) + # Configure pose detector and pose landmarks detector options. + holistic_landmarker_options_proto.pose_detector_graph_options.min_detection_confidence = ( + self.min_pose_detection_confidence + ) + holistic_landmarker_options_proto.pose_detector_graph_options.min_suppression_threshold = ( + self.min_pose_suppression_threshold + ) + holistic_landmarker_options_proto.face_landmarks_detector_graph_options.min_detection_confidence = ( + self.min_pose_landmarks_confidence + ) + # Configure hand landmarks detector options. + holistic_landmarker_options_proto.hand_landmarks_detector_graph_options.min_detection_confidence = ( + self.min_hand_landmarks_confidence + ) return holistic_landmarker_options_proto