Commit 9bbe1e3c authored by Llewellyn Pritchard's avatar Llewellyn Pritchard

Fix unbounded prompt growth scripts that loop

parent 98947d17
...@@ -450,6 +450,8 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed: ...@@ -450,6 +450,8 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
modules.sd_hijack.model_hijack.clear_comments() modules.sd_hijack.model_hijack.clear_comments()
comments = {} comments = {}
prompt_tmp = p.prompt
negative_prompt_tmp = p.negative_prompt
shared.prompt_styles.apply_styles(p) shared.prompt_styles.apply_styles(p)
...@@ -596,6 +598,9 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed: ...@@ -596,6 +598,9 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
if p.scripts is not None: if p.scripts is not None:
p.scripts.postprocess(p, res) p.scripts.postprocess(p, res)
p.prompt = prompt_tmp
p.negative_prompt = negative_prompt_tmp
return res return res
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment