MonsterMMORPG commited on
Commit
10e073a
1 Parent(s): 2ed38f5

Update face_fix_next.py

Browse files
Files changed (1) hide show
  1. face_fix_next.py +117 -117
face_fix_next.py CHANGED
@@ -1,117 +1,117 @@
1
- import gradio
2
-
3
- from facefusion import state_manager
4
- from facefusion.uis.components import about, age_modifier_options, common_options, execution, execution_queue_count, execution_thread_count, expression_restorer_options, face_debugger_options, face_detector, face_editor_options, face_enhancer_options, face_landmarker, face_masker, face_selector, face_swapper_options, frame_colorizer_options, frame_enhancer_options, instant_runner, job_manager, job_runner, lip_syncer_options, memory, output, output_options, preview, processors, source, target, temp_frame, terminal, trim_frame, ui_workflow
5
-
6
-
7
- def pre_check() -> bool:
8
- return True
9
-
10
-
11
- def pre_render() -> bool:
12
- return True
13
-
14
-
15
- def render() -> gradio.Blocks:
16
- with gradio.Blocks() as layout:
17
- with gradio.Row():
18
- with gradio.Column(scale = 2):
19
- with gradio.Blocks():
20
- about.render()
21
- with gradio.Blocks():
22
- processors.render()
23
- with gradio.Blocks():
24
- age_modifier_options.render()
25
- with gradio.Blocks():
26
- expression_restorer_options.render()
27
- with gradio.Blocks():
28
- face_debugger_options.render()
29
- with gradio.Blocks():
30
- face_editor_options.render()
31
- with gradio.Blocks():
32
- face_enhancer_options.render()
33
- with gradio.Blocks():
34
- face_swapper_options.render()
35
- with gradio.Blocks():
36
- frame_colorizer_options.render()
37
- with gradio.Blocks():
38
- frame_enhancer_options.render()
39
- with gradio.Blocks():
40
- lip_syncer_options.render()
41
- with gradio.Blocks():
42
- execution.render()
43
- execution_thread_count.render()
44
- execution_queue_count.render()
45
- with gradio.Blocks():
46
- memory.render()
47
- with gradio.Blocks():
48
- temp_frame.render()
49
- with gradio.Blocks():
50
- output_options.render()
51
- with gradio.Column(scale = 2):
52
- with gradio.Blocks():
53
- source.render()
54
- with gradio.Blocks():
55
- target.render()
56
- with gradio.Blocks():
57
- output.render()
58
- with gradio.Blocks():
59
- ui_workflow.render()
60
- instant_runner.render()
61
- job_runner.render()
62
- job_manager.render()
63
- with gradio.Blocks():
64
- terminal.render()
65
- with gradio.Column(scale = 3):
66
- with gradio.Blocks():
67
- preview.render()
68
- with gradio.Blocks():
69
- trim_frame.render()
70
- with gradio.Blocks():
71
- face_selector.render()
72
- with gradio.Blocks():
73
- face_masker.render()
74
- with gradio.Blocks():
75
- face_detector.render()
76
- with gradio.Blocks():
77
- face_landmarker.render()
78
- with gradio.Blocks():
79
- common_options.render()
80
- return layout
81
-
82
-
83
- def listen() -> None:
84
- processors.listen()
85
- age_modifier_options.listen()
86
- expression_restorer_options.listen()
87
- face_debugger_options.listen()
88
- face_editor_options.listen()
89
- face_enhancer_options.listen()
90
- face_swapper_options.listen()
91
- frame_colorizer_options.listen()
92
- frame_enhancer_options.listen()
93
- lip_syncer_options.listen()
94
- execution.listen()
95
- execution_thread_count.listen()
96
- execution_queue_count.listen()
97
- memory.listen()
98
- temp_frame.listen()
99
- output_options.listen()
100
- source.listen()
101
- target.listen()
102
- output.listen()
103
- instant_runner.listen()
104
- job_runner.listen()
105
- job_manager.listen()
106
- terminal.listen()
107
- preview.listen()
108
- trim_frame.listen()
109
- face_selector.listen()
110
- face_masker.listen()
111
- face_detector.listen()
112
- face_landmarker.listen()
113
- common_options.listen()
114
-
115
-
116
- def run(ui : gradio.Blocks) -> None:
117
- ui.launch(show_api = False, inbrowser = state_manager.get_item('open_browser'), share=True)
 
1
+ import gradio
2
+
3
+ from facefusion import state_manager
4
+ from facefusion.uis.components import about, age_modifier_options, common_options, execution, execution_queue_count, execution_thread_count, expression_restorer_options, face_debugger_options, face_detector, face_editor_options, face_enhancer_options, face_landmarker, face_masker, face_selector, face_swapper_options, frame_colorizer_options, frame_enhancer_options, instant_runner, job_manager, job_runner, lip_syncer_options, memory, output, output_options, preview, processors, source, target, temp_frame, terminal, trim_frame, ui_workflow
5
+
6
+
7
+ def pre_check() -> bool:
8
+ return True
9
+
10
+
11
+ def pre_render() -> bool:
12
+ return True
13
+
14
+
15
+ def render() -> gradio.Blocks:
16
+ with gradio.Blocks() as layout:
17
+ with gradio.Row():
18
+ with gradio.Column(scale = 2):
19
+ with gradio.Blocks():
20
+ about.render()
21
+ with gradio.Blocks():
22
+ processors.render()
23
+ with gradio.Blocks():
24
+ age_modifier_options.render()
25
+ with gradio.Blocks():
26
+ expression_restorer_options.render()
27
+ with gradio.Blocks():
28
+ face_debugger_options.render()
29
+ with gradio.Blocks():
30
+ face_editor_options.render()
31
+ with gradio.Blocks():
32
+ face_enhancer_options.render()
33
+ with gradio.Blocks():
34
+ face_swapper_options.render()
35
+ with gradio.Blocks():
36
+ frame_colorizer_options.render()
37
+ with gradio.Blocks():
38
+ frame_enhancer_options.render()
39
+ with gradio.Blocks():
40
+ lip_syncer_options.render()
41
+ with gradio.Blocks():
42
+ execution.render()
43
+ execution_thread_count.render()
44
+ execution_queue_count.render()
45
+ with gradio.Blocks():
46
+ memory.render()
47
+ with gradio.Blocks():
48
+ temp_frame.render()
49
+ with gradio.Blocks():
50
+ output_options.render()
51
+ with gradio.Column(scale = 2):
52
+ with gradio.Blocks():
53
+ source.render()
54
+ with gradio.Blocks():
55
+ target.render()
56
+ with gradio.Blocks():
57
+ output.render()
58
+ with gradio.Blocks():
59
+ terminal.render()
60
+ with gradio.Blocks():
61
+ ui_workflow.render()
62
+ instant_runner.render()
63
+ job_runner.render()
64
+ job_manager.render()
65
+ with gradio.Column(scale = 3):
66
+ with gradio.Blocks():
67
+ preview.render()
68
+ with gradio.Blocks():
69
+ trim_frame.render()
70
+ with gradio.Blocks():
71
+ face_selector.render()
72
+ with gradio.Blocks():
73
+ face_masker.render()
74
+ with gradio.Blocks():
75
+ face_detector.render()
76
+ with gradio.Blocks():
77
+ face_landmarker.render()
78
+ with gradio.Blocks():
79
+ common_options.render()
80
+ return layout
81
+
82
+
83
+ def listen() -> None:
84
+ processors.listen()
85
+ age_modifier_options.listen()
86
+ expression_restorer_options.listen()
87
+ face_debugger_options.listen()
88
+ face_editor_options.listen()
89
+ face_enhancer_options.listen()
90
+ face_swapper_options.listen()
91
+ frame_colorizer_options.listen()
92
+ frame_enhancer_options.listen()
93
+ lip_syncer_options.listen()
94
+ execution.listen()
95
+ execution_thread_count.listen()
96
+ execution_queue_count.listen()
97
+ memory.listen()
98
+ temp_frame.listen()
99
+ output_options.listen()
100
+ source.listen()
101
+ target.listen()
102
+ output.listen()
103
+ instant_runner.listen()
104
+ job_runner.listen()
105
+ job_manager.listen()
106
+ terminal.listen()
107
+ preview.listen()
108
+ trim_frame.listen()
109
+ face_selector.listen()
110
+ face_masker.listen()
111
+ face_detector.listen()
112
+ face_landmarker.listen()
113
+ common_options.listen()
114
+
115
+
116
+ def run(ui : gradio.Blocks) -> None:
117
+ ui.launch(show_api = False, inbrowser = True, share=True)