jhj0517
commited on
Commit
·
703e5b8
1
Parent(s):
4b4d1f9
Add parameter
Browse files
app.py
CHANGED
|
@@ -41,7 +41,8 @@ class App:
|
|
| 41 |
gr.Slider(label=_("Sample Ratio"), minimum=-0.2, maximum=1.2, step=0.01, value=1, visible=False),
|
| 42 |
gr.Dropdown(label=_("Sample Parts"), visible=False,
|
| 43 |
choices=[part.value for part in SamplePart], value=SamplePart.ALL.value),
|
| 44 |
-
gr.Slider(label=_("Face Crop Factor"), minimum=1.5, maximum=2.5, step=0.1, value=2)
|
|
|
|
| 45 |
]
|
| 46 |
|
| 47 |
@staticmethod
|
|
@@ -53,6 +54,7 @@ class App:
|
|
| 53 |
gr.Slider(label=_("First frame eyes alignment factor"), minimum=0, maximum=1, step=0.01, value=1),
|
| 54 |
gr.Slider(label=_("First frame mouth alignment factor"), minimum=0, maximum=1, step=0.01, value=1),
|
| 55 |
gr.Slider(label=_("Face Crop Factor"), minimum=1.5, maximum=2.5, step=0.1, value=2),
|
|
|
|
| 56 |
]
|
| 57 |
|
| 58 |
def launch(self):
|
|
|
|
| 41 |
gr.Slider(label=_("Sample Ratio"), minimum=-0.2, maximum=1.2, step=0.01, value=1, visible=False),
|
| 42 |
gr.Dropdown(label=_("Sample Parts"), visible=False,
|
| 43 |
choices=[part.value for part in SamplePart], value=SamplePart.ALL.value),
|
| 44 |
+
gr.Slider(label=_("Face Crop Factor"), minimum=1.5, maximum=2.5, step=0.1, value=2),
|
| 45 |
+
gr.Checkbox(label=_("Enable Image Restoration"), value=False)
|
| 46 |
]
|
| 47 |
|
| 48 |
@staticmethod
|
|
|
|
| 54 |
gr.Slider(label=_("First frame eyes alignment factor"), minimum=0, maximum=1, step=0.01, value=1),
|
| 55 |
gr.Slider(label=_("First frame mouth alignment factor"), minimum=0, maximum=1, step=0.01, value=1),
|
| 56 |
gr.Slider(label=_("Face Crop Factor"), minimum=1.5, maximum=2.5, step=0.1, value=2),
|
| 57 |
+
gr.Checkbox(label=_("Enable Image Restoration"), value=False)
|
| 58 |
]
|
| 59 |
|
| 60 |
def launch(self):
|