mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2025-11-04 14:16:57 +00:00
fix part2
This commit is contained in:
parent
4dacbcb4ad
commit
9b6448c19c
3
wgp.py
3
wgp.py
@ -4510,6 +4510,7 @@ def generate_video(
|
|||||||
h, w = get_outpainting_full_area_dimensions(h,w, outpainting_dims)
|
h, w = get_outpainting_full_area_dimensions(h,w, outpainting_dims)
|
||||||
default_image_size = calculate_new_dimensions(height, width, h, w, fit_canvas)
|
default_image_size = calculate_new_dimensions(height, width, h, w, fit_canvas)
|
||||||
fit_canvas = None
|
fit_canvas = None
|
||||||
|
# if there is a source video and a background image ref, the height/width ratio will need to be processed later by the code for the model (we dont know the source video dimensions at this point)
|
||||||
if len(image_refs) > nb_frames_positions:
|
if len(image_refs) > nb_frames_positions:
|
||||||
any_background_ref = "K" in video_prompt_type
|
any_background_ref = "K" in video_prompt_type
|
||||||
if remove_background_images_ref > 0:
|
if remove_background_images_ref > 0:
|
||||||
@ -7197,7 +7198,7 @@ def generate_video_tab(update_form = False, state_dict = None, ui_defaults = Non
|
|||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
video_prompt_type_image_refs = gr.Dropdown(
|
video_prompt_type_image_refs = gr.Dropdown(
|
||||||
choices=[ ("Start", "KI"),("Ref Image", "I")],
|
choices=[ ("None", ""),("Start", "KI"),("Ref Image", "I")],
|
||||||
value=filter_letters(video_prompt_type_value, "KI"),
|
value=filter_letters(video_prompt_type_value, "KI"),
|
||||||
visible = False,
|
visible = False,
|
||||||
label="Start / Reference Images", scale = 2
|
label="Start / Reference Images", scale = 2
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user