diff options
author | Llewellyn Pritchard <xacc.ide@gmail.com> | 2022-11-16 17:19:00 +0000 |
---|---|---|
committer | Llewellyn Pritchard <xacc.ide@gmail.com> | 2022-11-16 17:19:00 +0000 |
commit | 9bbe1e3c2e54f64283bb333ebb648d8f40f5d4ee (patch) | |
tree | 9e881144bb6cb1d0f44dfda38da91b7bd8fea4f5 /modules/processing.py | |
parent | 98947d173e3f1667eba29c904f681047dea9de90 (diff) | |
download | stable-diffusion-webui-gfx803-9bbe1e3c2e54f64283bb333ebb648d8f40f5d4ee.tar.gz stable-diffusion-webui-gfx803-9bbe1e3c2e54f64283bb333ebb648d8f40f5d4ee.tar.bz2 stable-diffusion-webui-gfx803-9bbe1e3c2e54f64283bb333ebb648d8f40f5d4ee.zip |
Fix unbounded prompt growth scripts that loop
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/processing.py b/modules/processing.py index 03c9143d..2fd12288 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -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
|