File size: 4,844 Bytes
9ae3d29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
WORDING =\
{
	'python_not_supported': 'Python version is not supported, upgrade to {version} or higher',
	'ffmpeg_not_installed': 'FFMpeg is not installed',
	'source_help': 'select a source image',
	'target_help': 'select a target image or video',
	'output_help': 'specify the output file or directory',
	'frame_processors_help': 'choose from the available frame processors (choices: {choices}, ...)',
	'ui_layouts_help': 'choose from the available ui layouts (choices: {choices}, ...)',
	'keep_fps_help': 'preserve the frames per second (fps) of the target',
	'keep_temp_help': 'retain temporary frames after processing',
	'skip_audio_help': 'omit audio from the target',
	'face_recognition_help': 'specify the method for face recognition',
	'face_analyser_direction_help': 'specify the direction used for face analysis',
	'face_analyser_age_help': 'specify the age used for face analysis',
	'face_analyser_gender_help': 'specify the gender used for face analysis',
	'reference_face_position_help': 'specify the position of the reference face',
	'reference_face_distance_help': 'specify the distance between the reference face and the target face',
	'reference_frame_number_help': 'specify the number of the reference frame',
	'trim_frame_start_help': 'specify the start frame for extraction',
	'trim_frame_end_help': 'specify the end frame for extraction',
	'temp_frame_format_help': 'specify the image format used for frame extraction',
	'temp_frame_quality_help': 'specify the image quality used for frame extraction',
	'output_video_encoder_help': 'specify the encoder used for the output video',
	'output_video_quality_help': 'specify the quality used for the output video',
	'max_memory_help': 'specify the maximum amount of ram to be used (in gb)',
	'execution_providers_help': 'choose from the available execution providers (choices: {choices}, ...)',
	'execution_thread_count_help': 'specify the number of execution threads',
	'execution_queue_count_help': 'specify the number of execution queries',
	'creating_temp': 'Creating temporary resources',
	'extracting_frames_fps': 'Extracting frames with {fps} FPS',
	'processing': 'Processing',
	'downloading': 'Downloading',
	'temp_frames_not_found': 'Temporary frames not found',
	'creating_video_fps': 'Creating video with {fps} FPS',
	'creating_video_failed': 'Creating video failed',
	'skipping_audio': 'Skipping audio',
	'restoring_audio': 'Restoring audio',
	'clearing_temp': 'Clearing temporary resources',
	'processing_image_succeed': 'Processing to image succeed',
	'processing_image_failed': 'Processing to image failed',
	'processing_video_succeed': 'Processing to video succeed',
	'processing_video_failed': 'Processing to video failed',
	'select_image_source': 'Select an image for source path',
	'select_image_or_video_target': 'Select an image or video for target path',
	'no_source_face_detected': 'No source face detected',
	'frame_processor_not_loaded': 'Frame processor {frame_processor} could not be loaded',
	'frame_processor_not_implemented': 'Frame processor {frame_processor} not implemented correctly',
	'ui_layout_not_loaded': 'UI layout {ui_layout} could not be loaded',
	'ui_layout_not_implemented': 'UI layout {ui_layout} not implemented correctly',
	'start_button_label': 'START',
	'clear_button_label': 'CLEAR',
	'benchmark_result_dataframe_label': 'BENCHMARK RESULT',
	'benchmark_cycles_slider_label': 'BENCHMARK CYCLES',
	'execution_providers_checkbox_group_label': 'EXECUTION PROVIDERS',
	'execution_thread_count_slider_label': 'EXECUTION THREAD COUNT',
	'execution_queue_count_slider_label': 'EXECUTION QUEUE COUNT',
	'face_analyser_direction_dropdown_label': 'FACE ANALYSER DIRECTION',
	'face_analyser_age_dropdown_label': 'FACE ANALYSER AGE',
	'face_analyser_gender_dropdown_label': 'FACE ANALYSER GENDER',
	'reference_face_gallery_label': 'REFERENCE FACE',
	'face_recognition_dropdown_label': 'FACE RECOGNITION',
	'reference_face_distance_slider_label': 'REFERENCE FACE DISTANCE',
	'output_image_or_video_label': 'OUTPUT',
	'output_video_encoder_dropdown_label': 'OUTPUT VIDEO ENCODER',
	'output_video_quality_slider_label': 'OUTPUT VIDEO QUALITY',
	'preview_image_label': 'PREVIEW',
	'preview_frame_slider_label': 'PREVIEW FRAME',
	'frame_processors_checkbox_group_label': 'FRAME PROCESSORS',
	'keep_fps_checkbox_label': 'KEEP FPS',
	'keep_temp_checkbox_label': 'KEEP TEMP',
	'skip_audio_checkbox_label': 'SKIP AUDIO',
	'temp_frame_format_dropdown_label': 'TEMP FRAME FORMAT',
	'temp_frame_quality_slider_label': 'TEMP FRAME QUALITY',
	'trim_frame_start_slider_label': 'TRIM FRAME START',
	'trim_frame_end_slider_label': 'TRIM FRAME END',
	'source_file_label': 'SOURCE',
	'target_file_label': 'TARGET',
	'point': '.',
	'comma': ',',
	'colon': ':',
	'question_mark': '?',
	'exclamation_mark': '!'
}


def get(key : str) -> str:
	return WORDING[key]