Spaces:
Running
on
Zero
Running
on
Zero
Update app_v2v.py
Browse files- app_v2v.py +1 -5
app_v2v.py
CHANGED
@@ -577,8 +577,7 @@ quick_prompts = [[x] for x in quick_prompts]
|
|
577 |
css = make_progress_bar_css()
|
578 |
block = gr.Blocks(css=css).queue()
|
579 |
with block:
|
580 |
-
#
|
581 |
-
gr.Markdown('# Framepack F1 with Video Input (Video Extension)')
|
582 |
with gr.Row():
|
583 |
with gr.Column():
|
584 |
# 20250506 pftq: Changed to Video input from Image
|
@@ -604,7 +603,6 @@ with block:
|
|
604 |
|
605 |
total_second_length = gr.Slider(label="Additional Video Length to Generate (Seconds)", minimum=1, maximum=120, value=5, step=0.1)
|
606 |
|
607 |
-
# 20250506 pftq: Reduced default distilled guidance scale to improve adherence to input video
|
608 |
gs = gr.Slider(label="Distilled CFG Scale", minimum=1.0, maximum=32.0, value=3.0, step=0.01, info='Prompt adherence at the cost of less details from the input video, but to a lesser extent than Context Frames.')
|
609 |
cfg = gr.Slider(label="CFG Scale", minimum=1.0, maximum=32.0, value=1.0, step=0.01, visible=True, info='Use this instead of Distilled for more detail/control + Negative Prompt (make sure Distilled set to 1). Doubles render time.') # Should not change
|
610 |
rs = gr.Slider(label="CFG Re-Scale", minimum=0.0, maximum=1.0, value=0.0, step=0.01, visible=False) # Should not change
|
@@ -612,7 +610,6 @@ with block:
|
|
612 |
n_prompt = gr.Textbox(label="Negative Prompt", value="", visible=True, info='Requires using normal CFG (undistilled) instead of Distilled (set Distilled=1 and CFG > 1).')
|
613 |
steps = gr.Slider(label="Steps", minimum=1, maximum=100, value=25, step=1, info='Increase for more quality, especially if using high non-distilled CFG.')
|
614 |
|
615 |
-
# 20250506 pftq: Renamed slider to Number of Context Frames and updated description
|
616 |
num_clean_frames = gr.Slider(label="Number of Context Frames", minimum=2, maximum=10, value=5, step=1, info="Retain more video details but increase memory use. Reduce to 2 if memory issues.")
|
617 |
|
618 |
default_vae = 32
|
@@ -639,7 +636,6 @@ with block:
|
|
639 |
<div style="text-align:center; margin-top:20px;">Share your results and find ideas at the <a href="https://x.com/search?q=framepack&f=live" target="_blank">FramePack Twitter (X) thread</a></div>
|
640 |
""")
|
641 |
|
642 |
-
# 20250506 pftq: Updated inputs to include num_clean_frames
|
643 |
ips = [input_video, prompt, n_prompt, seed, batch, resolution, total_second_length, latent_window_size, steps, cfg, gs, rs, gpu_memory_preservation, use_teacache, no_resize, mp4_crf, num_clean_frames, vae_batch]
|
644 |
start_button.click(fn=process, inputs=ips, outputs=[result_video, preview_image, progress_desc, progress_bar, start_button, end_button])
|
645 |
end_button.click(fn=end_process)
|
|
|
577 |
css = make_progress_bar_css()
|
578 |
block = gr.Blocks(css=css).queue()
|
579 |
with block:
|
580 |
+
gr.Markdown('# Framepack F1 (Video Extender)')
|
|
|
581 |
with gr.Row():
|
582 |
with gr.Column():
|
583 |
# 20250506 pftq: Changed to Video input from Image
|
|
|
603 |
|
604 |
total_second_length = gr.Slider(label="Additional Video Length to Generate (Seconds)", minimum=1, maximum=120, value=5, step=0.1)
|
605 |
|
|
|
606 |
gs = gr.Slider(label="Distilled CFG Scale", minimum=1.0, maximum=32.0, value=3.0, step=0.01, info='Prompt adherence at the cost of less details from the input video, but to a lesser extent than Context Frames.')
|
607 |
cfg = gr.Slider(label="CFG Scale", minimum=1.0, maximum=32.0, value=1.0, step=0.01, visible=True, info='Use this instead of Distilled for more detail/control + Negative Prompt (make sure Distilled set to 1). Doubles render time.') # Should not change
|
608 |
rs = gr.Slider(label="CFG Re-Scale", minimum=0.0, maximum=1.0, value=0.0, step=0.01, visible=False) # Should not change
|
|
|
610 |
n_prompt = gr.Textbox(label="Negative Prompt", value="", visible=True, info='Requires using normal CFG (undistilled) instead of Distilled (set Distilled=1 and CFG > 1).')
|
611 |
steps = gr.Slider(label="Steps", minimum=1, maximum=100, value=25, step=1, info='Increase for more quality, especially if using high non-distilled CFG.')
|
612 |
|
|
|
613 |
num_clean_frames = gr.Slider(label="Number of Context Frames", minimum=2, maximum=10, value=5, step=1, info="Retain more video details but increase memory use. Reduce to 2 if memory issues.")
|
614 |
|
615 |
default_vae = 32
|
|
|
636 |
<div style="text-align:center; margin-top:20px;">Share your results and find ideas at the <a href="https://x.com/search?q=framepack&f=live" target="_blank">FramePack Twitter (X) thread</a></div>
|
637 |
""")
|
638 |
|
|
|
639 |
ips = [input_video, prompt, n_prompt, seed, batch, resolution, total_second_length, latent_window_size, steps, cfg, gs, rs, gpu_memory_preservation, use_teacache, no_resize, mp4_crf, num_clean_frames, vae_batch]
|
640 |
start_button.click(fn=process, inputs=ips, outputs=[result_video, preview_image, progress_desc, progress_bar, start_button, end_button])
|
641 |
end_button.click(fn=end_process)
|