Python
Fixed Vace bug when sliding windows not enabled
DeepBeepMeep5efddd626d03
diff --git a/wgp.py b/wgp.pyindex 09a09ae..d0dfc6d 100644--- a/wgp.py+++ b/wgp.py@@ -2376,9 +2376,9 @@ def generate_video(gen["prompt"] = promptrepeat_no = 0extra_generation = 0+ start_frame = 0sliding_window = sliding_window_repeat > 0if sliding_window:- start_frame = 0reuse_frames = sliding_window_overlapdiscard_last_frames = sliding_window_discard_last_frames #4repeat_generation = sliding_window_repeat@@ -3718,7 +3718,7 @@ def generate_video_tab(update_form = False, state_dict = None, ui_defaults = Nonwith gr.Tab("Sliding Window", visible= "Vace" in model_filename ) as sliding_window_tab:with gr.Column():- gr.Markdown("<B>A Sliding Window allows you to generate video longer than those of the model limits</B>")+ gr.Markdown("<B>A Sliding Window allows you to generate video with a duration not limited by the Model</B>")sliding_window_repeat = gr.Slider(0, 20, value=ui_defaults.get("sliding_window_repeat", 0), step=1, label="Sliding Window Iterations (O=Disabled)")sliding_window_overlap = gr.Slider(1, 32, value=ui_defaults.get("sliding_window_overlap",16), step=1, label="Windows Frames Overlap (needed to maintain continuity between windows, a higher value will require more windows)")