Move inputs
Browse files- app_v2v.py +6 -7
app_v2v.py
CHANGED
|
@@ -980,6 +980,11 @@ adapted from the official code repo [FramePack](https://github.com/lllyasviel/Fr
|
|
| 980 |
progress_desc = gr.Markdown('', elem_classes='no-generating-animation')
|
| 981 |
progress_bar = gr.HTML('', elem_classes='no-generating-animation')
|
| 982 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 983 |
with gr.Row(visible=False):
|
| 984 |
gr.Examples(
|
| 985 |
examples = [
|
|
@@ -1007,7 +1012,7 @@ adapted from the official code repo [FramePack](https://github.com/lllyasviel/Fr
|
|
| 1007 |
],
|
| 1008 |
run_on_click = True,
|
| 1009 |
fn = process_video,
|
| 1010 |
-
inputs =
|
| 1011 |
outputs = [result_video, preview_image, progress_desc, progress_bar, start_button, end_button],
|
| 1012 |
cache_examples = True,
|
| 1013 |
)
|
|
@@ -1015,12 +1020,6 @@ adapted from the official code repo [FramePack](https://github.com/lllyasviel/Fr
|
|
| 1015 |
gr.Markdown('## Guide')
|
| 1016 |
gr.Markdown("I discourage to use the Text-to-Video feature. You should rather generate an image with Flux and use Image-to-Video. You will save time.")
|
| 1017 |
|
| 1018 |
-
|
| 1019 |
-
# 20250506 pftq: Updated inputs to include num_clean_frames
|
| 1020 |
-
ips = [input_video, prompt, n_prompt, randomize_seed, 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]
|
| 1021 |
-
start_button.click(fn=process_video, inputs=ips, outputs=[result_video, preview_image, progress_desc, progress_bar, start_button, end_button])
|
| 1022 |
-
end_button.click(fn=end_process)
|
| 1023 |
-
|
| 1024 |
|
| 1025 |
def handle_field_debug_change(input_image_debug_data, input_video_debug_data, prompt_debug_data, total_second_length_debug_data):
|
| 1026 |
global input_image_debug_value, input_video_debug_value, prompt_debug_value, total_second_length_debug_value
|
|
|
|
| 980 |
progress_desc = gr.Markdown('', elem_classes='no-generating-animation')
|
| 981 |
progress_bar = gr.HTML('', elem_classes='no-generating-animation')
|
| 982 |
|
| 983 |
+
# 20250506 pftq: Updated inputs to include num_clean_frames
|
| 984 |
+
ips_video = [input_video, prompt, n_prompt, randomize_seed, 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]
|
| 985 |
+
start_button.click(fn=process_video, inputs=ips_video, outputs=[result_video, preview_image, progress_desc, progress_bar, start_button, end_button])
|
| 986 |
+
end_button.click(fn=end_process)
|
| 987 |
+
|
| 988 |
with gr.Row(visible=False):
|
| 989 |
gr.Examples(
|
| 990 |
examples = [
|
|
|
|
| 1012 |
],
|
| 1013 |
run_on_click = True,
|
| 1014 |
fn = process_video,
|
| 1015 |
+
inputs = ips_video,
|
| 1016 |
outputs = [result_video, preview_image, progress_desc, progress_bar, start_button, end_button],
|
| 1017 |
cache_examples = True,
|
| 1018 |
)
|
|
|
|
| 1020 |
gr.Markdown('## Guide')
|
| 1021 |
gr.Markdown("I discourage to use the Text-to-Video feature. You should rather generate an image with Flux and use Image-to-Video. You will save time.")
|
| 1022 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1023 |
|
| 1024 |
def handle_field_debug_change(input_image_debug_data, input_video_debug_data, prompt_debug_data, total_second_length_debug_data):
|
| 1025 |
global input_image_debug_value, input_video_debug_value, prompt_debug_value, total_second_length_debug_value
|