From 8c54b65495bdbab09b68eabc0aaafe0a9a9f1dcb Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Mon, 15 Jun 2026 10:55:35 +0800 Subject: [PATCH] img2img allow extra images --- koboldcpp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koboldcpp.py b/koboldcpp.py index 49fcef853..165650da2 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -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()