This commit is contained in:
harisreedhar 2024-09-19 19:05:27 +05:30
parent fea3274c44
commit 52b26a1e33
2 changed files with 4 additions and 4 deletions

View File

@ -67,9 +67,9 @@ face_editor_mouth_purse =
face_editor_mouth_smile = face_editor_mouth_smile =
face_editor_mouth_position_horizontal = face_editor_mouth_position_horizontal =
face_editor_mouth_position_vertical = face_editor_mouth_position_vertical =
face_editor_pose_pitch = face_editor_head_pitch =
face_editor_pose_yaw = face_editor_head_yaw =
face_editor_pose_roll = face_editor_head_roll =
face_enhancer_model = face_enhancer_model =
face_enhancer_blend = face_enhancer_blend =
face_swapper_model = face_swapper_model =

View File

@ -62,6 +62,6 @@ def limit_expression(expression : LivePortraitExpression) -> LivePortraitExpress
def create_rotation(pitch : LivePortraitPitch, yaw : LivePortraitYaw, roll : LivePortraitRoll) -> LivePortraitRotation: def create_rotation(pitch : LivePortraitPitch, yaw : LivePortraitYaw, roll : LivePortraitRoll) -> LivePortraitRotation:
rotation = scipy.spatial.transform.Rotation.from_euler('xyz', [ pitch, yaw, roll ], degrees=True).as_matrix() rotation = scipy.spatial.transform.Rotation.from_euler('xyz', [ pitch, yaw, roll ], degrees = True).as_matrix()
rotation = rotation.astype(numpy.float32) rotation = rotation.astype(numpy.float32)
return rotation return rotation