Industry leading face manipulation platform
Rename to detect_face_landmark()
henryruhsd459ae981e60
diff --git a/facefusion/face_analyser.py b/facefusion/face_analyser.pyindex a80384be..673ecbea 100644--- a/facefusion/face_analyser.py+++ b/facefusion/face_analyser.py@@ -7,7 +7,7 @@ from facefusion.common_helper import get_firstfrom facefusion.face_classifier import classify_facefrom facefusion.face_detector import detect_faces, detect_rotated_facesfrom facefusion.face_helper import apply_nms, convert_to_face_landmark_5, estimate_face_angle, get_nms_threshold-from facefusion.face_landmarker import detect_face_landmarks, estimate_face_landmark_68_5+from facefusion.face_landmarker import detect_face_landmark, estimate_face_landmark_68_5from facefusion.face_recognizer import calc_embeddingfrom facefusion.face_store import get_static_faces, set_static_facesfrom facefusion.types import BoundingBox, Face, FaceLandmark5, FaceLandmarkSet, FaceScoreSet, Score, VisionFrame@@ -29,7 +29,7 @@ def create_faces(vision_frame : VisionFrame, bounding_boxes : List[BoundingBox],face_angle = estimate_face_angle(face_landmark_68_5)if state_manager.get_item('face_landmarker_score') > 0:- face_landmark_68, face_landmark_score_68 = detect_face_landmarks(vision_frame, bounding_box, face_angle)+ face_landmark_68, face_landmark_score_68 = detect_face_landmark(vision_frame, bounding_box, face_angle)if face_landmark_score_68 > state_manager.get_item('face_landmarker_score'):face_landmark_5_68 = convert_to_face_landmark_5(face_landmark_68)diff --git a/facefusion/face_landmarker.py b/facefusion/face_landmarker.pyindex 45e9093a..cab96277 100644--- a/facefusion/face_landmarker.py+++ b/facefusion/face_landmarker.py@@ -115,7 +115,7 @@ def pre_check() -> bool:return conditional_download_hashes(model_hash_set) and conditional_download_sources(model_source_set)-def detect_face_landmarks(vision_frame : VisionFrame, bounding_box : BoundingBox, face_angle : Angle) -> Tuple[FaceLandmark68, Score]:+def detect_face_landmark(vision_frame : VisionFrame, bounding_box : BoundingBox, face_angle : Angle) -> Tuple[FaceLandmark68, Score]:face_landmark_2dfan4 = Noneface_landmark_peppa_wutz = Noneface_landmark_score_2dfan4 = 0.0