img2img allow extra images

This commit is contained in:
Concedo
2026-06-15 10:55:35 +08:00
parent fefb7bbfef
commit 8c54b65495
+2 -2
View File
@@ -2817,8 +2817,8 @@ def sd_generate(genparams):
swap_refimg = (True if tryparseint(genparams.get("send_as_refimg", 0),0) else False)
reverse_refimg = (True if tryparseint(genparams.get("reverse_refimg", 0),0) else False)
if len(extra_images_arr)==0 and swap_refimg and init_images and init_images!="" and not mask:
extra_images_arr = [init_images]
if swap_refimg and init_images and init_images != "" and not mask:
extra_images_arr = [init_images] + extra_images_arr
init_images = ""
inputs = sd_generation_inputs()