Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
|
@@ -265,7 +265,7 @@ if __name__ == "__main__":
|
|
| 265 |
audio_checkbox = gr.Checkbox(label='"Audio" = enable audio', value=False)
|
| 266 |
|
| 267 |
# Кнопка генерации
|
| 268 |
-
generate_btn = gr.Button("Generate")
|
| 269 |
|
| 270 |
with gr.Column():
|
| 271 |
# Вывод результата
|
|
@@ -280,9 +280,11 @@ if __name__ == "__main__":
|
|
| 280 |
|
| 281 |
***Target_Face_Index: Index_0 = First Face. To switch for another target face - switch to Index_1, Index_2, e.t.c.
|
| 282 |
|
| 283 |
-
***If you forget to add "Loop_Count" or "Pingpong" options to your video - after finish you can enable this options and press "Generate" button - which leads to re-save new result video (with short generation - without re-generating all face swap processing from start).
|
| 284 |
-
|
| 285 |
***Note: "1" or "2" - 'every frame' or 'every second frame' - if you have video 60fps or 48 fps - you can choose "2" to select every 2nd frame - for two time reduce total number of frames in video (got 30 fps and 24 fps video, accordingly).
|
|
|
|
|
|
|
|
|
|
|
|
|
| 286 |
|
| 287 |
***If needed, use AdvancedLivePortrait to correct faces on video before swapping. Here is [workflow](https://openart.ai/workflows/ocelot_vibrant_0/advanced-liveportrait-for-video-as-source/hV07PExjpK3JEd6kNnkr) for ComfyUI.
|
| 288 |
|
|
|
|
| 265 |
audio_checkbox = gr.Checkbox(label='"Audio" = enable audio', value=False)
|
| 266 |
|
| 267 |
# Кнопка генерации
|
| 268 |
+
generate_btn = gr.Button("Check: Audio? Loop Count? Pingpong? Generate!")
|
| 269 |
|
| 270 |
with gr.Column():
|
| 271 |
# Вывод результата
|
|
|
|
| 280 |
|
| 281 |
***Target_Face_Index: Index_0 = First Face. To switch for another target face - switch to Index_1, Index_2, e.t.c.
|
| 282 |
|
|
|
|
|
|
|
| 283 |
***Note: "1" or "2" - 'every frame' or 'every second frame' - if you have video 60fps or 48 fps - you can choose "2" to select every 2nd frame - for two time reduce total number of frames in video (got 30 fps and 24 fps video, accordingly).
|
| 284 |
+
|
| 285 |
+
***Video 05 sec * 24 fps = 120 frames/720p = takes 275 sec (4.5 min) for generating. Overall: SECONDS --> MINUTES.
|
| 286 |
+
|
| 287 |
+
***To cancel job - just close your browser's page.
|
| 288 |
|
| 289 |
***If needed, use AdvancedLivePortrait to correct faces on video before swapping. Here is [workflow](https://openart.ai/workflows/ocelot_vibrant_0/advanced-liveportrait-for-video-as-source/hV07PExjpK3JEd6kNnkr) for ComfyUI.
|
| 290 |
|