mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-06 13:01:21 +02:00
img2img allow extra images
This commit is contained in:
+2
-2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user