From c082be3506d9a0026573322d4a531bcf91ab188a Mon Sep 17 00:00:00 2001 From: henryruhs Date: Fri, 27 Sep 2024 21:20:10 +0200 Subject: [PATCH] Adjust wording for face editor --- facefusion/processors/modules/face_editor.py | 4 ++-- facefusion/wording.py | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/facefusion/processors/modules/face_editor.py b/facefusion/processors/modules/face_editor.py index 7e77d200..22682bec 100755 --- a/facefusion/processors/modules/face_editor.py +++ b/facefusion/processors/modules/face_editor.py @@ -132,8 +132,8 @@ def register_args(program : ArgumentParser) -> None: group_processors.add_argument('--face-editor-mouth-position-horizontal', help = wording.get('help.face_editor_mouth_position_horizontal'), type = float, default = config.get_float_value('processors.face_editor_mouth_position_horizontal', '0'), choices = processors_choices.face_editor_mouth_position_horizontal_range, metavar = create_float_metavar(processors_choices.face_editor_mouth_position_horizontal_range)) group_processors.add_argument('--face-editor-mouth-position-vertical', help = wording.get('help.face_editor_mouth_position_vertical'), type = float, default = config.get_float_value('processors.face_editor_mouth_position_vertical', '0'), choices = processors_choices.face_editor_mouth_position_vertical_range, metavar = create_float_metavar(processors_choices.face_editor_mouth_position_vertical_range)) group_processors.add_argument('--face-editor-head-pitch', help = wording.get('help.face_editor_head_pitch'), type = float, default = config.get_float_value('processors.face_editor_head_pitch', '0'), choices = processors_choices.face_editor_head_pitch_range, metavar = create_float_metavar(processors_choices.face_editor_head_pitch_range)) - group_processors.add_argument('--face-editor-head-yaw', help=wording.get('help.face_editor_head_yaw'), type = float, default = config.get_float_value('processors.face_editor_head_yaw', '0'), choices = processors_choices.face_editor_head_yaw_range, metavar = create_float_metavar(processors_choices.face_editor_head_yaw_range)) - group_processors.add_argument('--face-editor-head-roll', help=wording.get('help.face_editor_head_roll'), type = float, default = config.get_float_value('processors.face_editor_head_roll', '0'), choices = processors_choices.face_editor_head_roll_range, metavar = create_float_metavar(processors_choices.face_editor_head_roll_range)) + group_processors.add_argument('--face-editor-head-yaw', help = wording.get('help.face_editor_head_yaw'), type = float, default = config.get_float_value('processors.face_editor_head_yaw', '0'), choices = processors_choices.face_editor_head_yaw_range, metavar = create_float_metavar(processors_choices.face_editor_head_yaw_range)) + group_processors.add_argument('--face-editor-head-roll', help = wording.get('help.face_editor_head_roll'), type = float, default = config.get_float_value('processors.face_editor_head_roll', '0'), choices = processors_choices.face_editor_head_roll_range, metavar = create_float_metavar(processors_choices.face_editor_head_roll_range)) facefusion.jobs.job_store.register_step_keys([ 'face_editor_model', 'face_editor_eyebrow_direction', 'face_editor_eye_gaze_horizontal', 'face_editor_eye_gaze_vertical', 'face_editor_eye_open_ratio', 'face_editor_lip_open_ratio', 'face_editor_mouth_grim', 'face_editor_mouth_pout', 'face_editor_mouth_purse', 'face_editor_mouth_smile', 'face_editor_mouth_position_horizontal', 'face_editor_mouth_position_vertical', 'face_editor_head_pitch', 'face_editor_head_yaw', 'face_editor_head_roll' ]) diff --git a/facefusion/wording.py b/facefusion/wording.py index de87892b..30c1e15f 100755 --- a/facefusion/wording.py +++ b/facefusion/wording.py @@ -149,15 +149,15 @@ WORDING : Dict[str, Any] =\ 'face_editor_eye_gaze_vertical': 'specify the vertical eye gaze', 'face_editor_eye_open_ratio': 'specify the ratio of eye opening', 'face_editor_lip_open_ratio': 'specify the ratio of lip opening', - 'face_editor_mouth_grim': 'specify the mouth grim amount', - 'face_editor_mouth_pout': 'specify the mouth pout amount', - 'face_editor_mouth_purse': 'specify the mouth purse amount', - 'face_editor_mouth_smile': 'specify the mouth smile amount', - 'face_editor_mouth_position_horizontal': 'specify the mouth position horizontal amount', - 'face_editor_mouth_position_vertical': 'specify the mouth position vertical amount', - 'face_editor_head_pitch': 'specify the head pitch amount', - 'face_editor_head_yaw': 'specify the head yaw amount', - 'face_editor_head_roll': 'specify the head roll amount', + 'face_editor_mouth_grim': 'specify the mouth grim', + 'face_editor_mouth_pout': 'specify the mouth pout', + 'face_editor_mouth_purse': 'specify the mouth purse', + 'face_editor_mouth_smile': 'specify the mouth smile', + 'face_editor_mouth_position_horizontal': 'specify the horizontal mouth position', + 'face_editor_mouth_position_vertical': 'specify the vertical mouth position', + 'face_editor_head_pitch': 'specify the head pitch', + 'face_editor_head_yaw': 'specify the head yaw', + 'face_editor_head_roll': 'specify the head roll', 'face_enhancer_model': 'choose the model responsible for enhancing the face', 'face_enhancer_blend': 'blend the enhanced into the previous face', 'face_swapper_model': 'choose the model responsible for swapping the face',