mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
Fix unbounded prompt growth scripts that loop
This commit is contained in:
parent
98947d173e
commit
9bbe1e3c2e
@ -450,6 +450,8 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
|
||||
modules.sd_hijack.model_hijack.clear_comments()
|
||||
|
||||
comments = {}
|
||||
prompt_tmp = p.prompt
|
||||
negative_prompt_tmp = p.negative_prompt
|
||||
|
||||
shared.prompt_styles.apply_styles(p)
|
||||
|
||||
@ -596,6 +598,9 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
|
||||
if p.scripts is not None:
|
||||
p.scripts.postprocess(p, res)
|
||||
|
||||
p.prompt = prompt_tmp
|
||||
p.negative_prompt = negative_prompt_tmp
|
||||
|
||||
return res
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user