DegMaTsu commited on
Upload app.py
Browse files264 unmodified lines2652662672682692702718 unmodified lines280281282283284285286287288264 unmodified linesaudio_checkbox = gr.Checkbox(label='"Audio" = enable audio', value=False)# Кнопка генерацииgenerate_btn = gr.Button("Generate")with gr.Column():# Вывод результата8 unmodified lines***Target_Face_Index: Index_0 = First Face. To switch for another target face - switch to Index_1, Index_2, e.t.c.***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).***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).***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.264 unmodified lines2652662672682692702718 unmodified lines280281282283284285286287288289290264 unmodified linesaudio_checkbox = gr.Checkbox(label='"Audio" = enable audio', value=False)# Кнопка генерацииgenerate_btn = gr.Button("Check: Audio? Loop Count? Pingpong? Generate!")with gr.Column():# Вывод результата8 unmodified lines***Target_Face_Index: Index_0 = First Face. To switch for another target face - switch to Index_1, Index_2, e.t.c.***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).***Video 05 sec * 24 fps = 120 frames/720p = takes 275 sec (4.5 min) for generating. Overall: SECONDS --> MINUTES.***To cancel job - just close your browser's page.***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.
app.py+5-3