mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-08-26 15:15:16 +02:00
updated sdui
This commit is contained in:
+17
-17
File diff suppressed because one or more lines are too long
@@ -2123,6 +2123,11 @@ def sd_generate(genparams):
|
||||
sample_steps = (1 if sample_steps < 1 else (forced_steplimit if sample_steps > forced_steplimit else sample_steps))
|
||||
vid_req_frames = (1 if vid_req_frames < 1 else (100 if vid_req_frames > 100 else vid_req_frames))
|
||||
|
||||
swap_refimg = (True if tryparseint(genparams.get("send_as_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]
|
||||
init_images = ""
|
||||
|
||||
inputs = sd_generation_inputs()
|
||||
inputs.prompt = prompt.encode("UTF-8")
|
||||
inputs.negative_prompt = negative_prompt.encode("UTF-8")
|
||||
|
||||
Reference in New Issue
Block a user