Fix for issue with SD next and regional prompter

and some minor other fixes
This commit is contained in:
AIrjen
2023-11-12 11:18:00 +01:00
parent 9787587afa
commit 2e72ff65aa
4 changed files with 24 additions and 14 deletions
+12 -6
View File
@@ -1093,14 +1093,20 @@ class Script(scripts.Script):
print(" ")
print(p.prompt)
# finally figured out how to do multiple batch sizes
promptlist = []
for i in range(batchsize):
promptlist.append(p.prompt)
if(batchsize>1):
# finally figured out how to do multiple batch sizes
for i in range(batchsize):
promptlist.append(p.prompt)
p.prompt = promptlist
p.batch_size = batchsize
p.hr_prompt = promptlist
p.prompt = promptlist
p.batch_size = batchsize
p.hr_prompt = promptlist
else:
p.batch_size = batchsize
p.hr_prompt = p.prompt
processed = process_images(p)
images += processed.images
infotexts += processed.infotexts