Spaces:
Sleeping
Sleeping
Update webgui.py
Browse files
webgui.py
CHANGED
@@ -50,11 +50,11 @@ default_values = {
|
|
50 |
"length": 1200,
|
51 |
"seed": 420,
|
52 |
"facemask_dilation_ratio": 0.1,
|
53 |
-
"facecrop_dilation_ratio": 0
|
54 |
"context_frames": 12,
|
55 |
"context_overlap": 3,
|
56 |
"cfg": 2.5,
|
57 |
-
"steps":
|
58 |
"sample_rate": 16000,
|
59 |
"fps": 24,
|
60 |
"device": "cuda"
|
@@ -242,8 +242,8 @@ with gr.Blocks() as demo:
|
|
242 |
cfg = gr.Slider(label="CFG", minimum=0.0, maximum=10.0, step=0.1, value=default_values["cfg"], interactive=available_property)
|
243 |
steps = gr.Slider(label="Steps", minimum=1, maximum=100, step=1, value=default_values["steps"], interactive=available_property)
|
244 |
with gr.Row():
|
245 |
-
sample_rate = gr.Slider(label="Sample Rate", minimum=8000, maximum
|
246 |
-
fps = gr.Slider(label="FPS", minimum=1, maximum
|
247 |
device = gr.Radio(label="Device", choices=["cuda", "cpu"], value=default_values["device"], interactive=available_property)
|
248 |
generate_button = gr.Button("Generate Video")
|
249 |
with gr.Column():
|
|
|
50 |
"length": 1200,
|
51 |
"seed": 420,
|
52 |
"facemask_dilation_ratio": 0.1,
|
53 |
+
"facecrop_dilation_ratio": 1.0,
|
54 |
"context_frames": 12,
|
55 |
"context_overlap": 3,
|
56 |
"cfg": 2.5,
|
57 |
+
"steps": 100,
|
58 |
"sample_rate": 16000,
|
59 |
"fps": 24,
|
60 |
"device": "cuda"
|
|
|
242 |
cfg = gr.Slider(label="CFG", minimum=0.0, maximum=10.0, step=0.1, value=default_values["cfg"], interactive=available_property)
|
243 |
steps = gr.Slider(label="Steps", minimum=1, maximum=100, step=1, value=default_values["steps"], interactive=available_property)
|
244 |
with gr.Row():
|
245 |
+
sample_rate = gr.Slider(label="Sample Rate", minimum=8000, maximum=48000, step=1000, value=default_values["sample_rate"], interactive=available_property)
|
246 |
+
fps = gr.Slider(label="FPS", minimum=1, maximum=60, step=1, value=default_values["fps"], interactive=available_property)
|
247 |
device = gr.Radio(label="Device", choices=["cuda", "cpu"], value=default_values["device"], interactive=available_property)
|
248 |
generate_button = gr.Button("Generate Video")
|
249 |
with gr.Column():
|