mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 09:04:36 +00:00
filter out empty entries
This commit is contained in:
parent
794563b52c
commit
b6edb79648
1 changed files with 1 additions and 0 deletions
|
@ -1718,6 +1718,7 @@ def sd_generate(genparams):
|
|||
clip_skip = tryparseint(genparams.get("clip_skip", -1),-1)
|
||||
extra_images_arr = genparams.get("extra_images", [])
|
||||
extra_images_arr = ([] if not extra_images_arr else extra_images_arr)
|
||||
extra_images_arr = [img for img in extra_images_arr if img not in (None, "")]
|
||||
extra_images_arr = extra_images_arr[:extra_images_max]
|
||||
|
||||
#clean vars
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue