mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2025-11-05 06:29:14 +00:00
fixed forms errors
This commit is contained in:
parent
56a51b79f0
commit
13b001d4ea
2
wgp.py
2
wgp.py
@ -7478,7 +7478,7 @@ def generate_video_tab(update_form = False, state_dict = None, ui_defaults = Non
|
|||||||
|
|
||||||
current_video_length = ui_defaults.get("video_length", 81 if get_model_family(base_model_type)=="wan" else 97)
|
current_video_length = ui_defaults.get("video_length", 81 if get_model_family(base_model_type)=="wan" else 97)
|
||||||
|
|
||||||
computed_fps = get_computed_fps(ui_defaults.get("force_fps",""), base_model_type , video_guide, video_source )
|
computed_fps = get_computed_fps(ui_defaults.get("force_fps",""), base_model_type , ui_defaults.get("video_guide", None), ui_defaults.get("video_source", None))
|
||||||
video_length = gr.Slider(min_frames, get_max_frames(737 if test_any_sliding_window(base_model_type) else 337), value=current_video_length,
|
video_length = gr.Slider(min_frames, get_max_frames(737 if test_any_sliding_window(base_model_type) else 337), value=current_video_length,
|
||||||
step=frames_step, label=compute_video_length_label(computed_fps, current_video_length) , visible = True, interactive= True)
|
step=frames_step, label=compute_video_length_label(computed_fps, current_video_length) , visible = True, interactive= True)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user