jhj0517
commited on
Commit
·
81226a3
1
Parent(s):
284f5ff
Remove meaningless param
Browse files
app.py
CHANGED
|
@@ -53,7 +53,6 @@ class App:
|
|
| 53 |
gr.Slider(label=_("Retargeting Eyes"), minimum=0, maximum=1, step=0.01, value=0),
|
| 54 |
gr.Slider(label=_("Retargeting Mouth"), minimum=0, maximum=1, step=0.01, value=0),
|
| 55 |
gr.Checkbox(label=_("Tracking Source Video"), value=False, visible=False),
|
| 56 |
-
gr.Checkbox(label=_("Animate Without Video"), value=False, visible=False),
|
| 57 |
gr.Slider(label=_("Crop Factor"), minimum=1.5, maximum=2.5, step=0.1, value=1.7),
|
| 58 |
]
|
| 59 |
|
|
|
|
| 53 |
gr.Slider(label=_("Retargeting Eyes"), minimum=0, maximum=1, step=0.01, value=0),
|
| 54 |
gr.Slider(label=_("Retargeting Mouth"), minimum=0, maximum=1, step=0.01, value=0),
|
| 55 |
gr.Checkbox(label=_("Tracking Source Video"), value=False, visible=False),
|
|
|
|
| 56 |
gr.Slider(label=_("Crop Factor"), minimum=1.5, maximum=2.5, step=0.1, value=1.7),
|
| 57 |
]
|
| 58 |
|
modules/live_portrait/live_portrait_inferencer.py
CHANGED
|
@@ -246,7 +246,6 @@ class LivePortraitInferencer:
|
|
| 246 |
retargeting_eyes: float = 0,
|
| 247 |
retargeting_mouth: float = 0,
|
| 248 |
tracking_src_vid: bool = False,
|
| 249 |
-
animate_without_vid: bool = False,
|
| 250 |
crop_factor: float = 1.5,
|
| 251 |
src_image: Optional[str] = None,
|
| 252 |
driving_vid_path: Optional[str] = None,
|
|
@@ -278,9 +277,6 @@ class LivePortraitInferencer:
|
|
| 278 |
driving_length = len(self.driving_values)
|
| 279 |
|
| 280 |
total_length = len(driving_images)
|
| 281 |
-
if animate_without_vid:
|
| 282 |
-
total_length = total_length
|
| 283 |
-
|
| 284 |
self.psi_list = [self.psi_list[0] for _ in range(total_length)]
|
| 285 |
|
| 286 |
c_i_es = ExpressionSet()
|
|
|
|
| 246 |
retargeting_eyes: float = 0,
|
| 247 |
retargeting_mouth: float = 0,
|
| 248 |
tracking_src_vid: bool = False,
|
|
|
|
| 249 |
crop_factor: float = 1.5,
|
| 250 |
src_image: Optional[str] = None,
|
| 251 |
driving_vid_path: Optional[str] = None,
|
|
|
|
| 277 |
driving_length = len(self.driving_values)
|
| 278 |
|
| 279 |
total_length = len(driving_images)
|
|
|
|
|
|
|
|
|
|
| 280 |
self.psi_list = [self.psi_list[0] for _ in range(total_length)]
|
| 281 |
|
| 282 |
c_i_es = ExpressionSet()
|