fix part2

This commit is contained in:
deepbeepmeep 2025-08-25 14:38:20 +02:00
parent 4dacbcb4ad
commit 9b6448c19c

3
wgp.py
View File

@ -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