Merge pull request #48 from jpsieben7/fixSaving

Fix saving not working due to all_seeds and all_prompts not being properly provided
pull/52/head
ydobemos 2023-04-02 19:59:55 +03:00 committed by GitHub
commit a0b877c189
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -629,6 +629,8 @@ class Script(scripts.Script):
SubTempText = ""
images = []
seeds = []
prompts = []
infotexts = []
# Overtake amounts of things to generate so we can go through different variables
@ -904,6 +906,8 @@ class Script(scripts.Script):
proc = process_images(copy_p)
infotexts += proc.infotexts
images += proc.images
seeds.append(proc.seed)
prompts.append(proc.prompt)
SubCurrentChoice += 1
@ -919,4 +923,5 @@ class Script(scripts.Script):
print(
f"\n\nStylePile processing complete. Here's a random tip:\n{random.choice(TipsAndTricks)}\n")
return Processed(p=p, images_list=images, seed=p.seed, info=infotexts[0], infotexts=infotexts)
return Processed(p=p, images_list=images, seed=p.seed, all_seeds=seeds, all_prompts=prompts, info=infotexts[0],
infotexts=infotexts)