diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-15 05:57:03 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-15 05:57:03 +0000 |
commit | b28cf84c3632df4a6d4c110f7c25d68445b64427 (patch) | |
tree | 6639453d46f339da6c5c1b6f9437f1a899bf72ba /modules/processing.py | |
parent | dfb2e830d9f84fe5495c01ba0e70f5eaa2ce0bff (diff) | |
download | stable-diffusion-webui-gfx803-b28cf84c3632df4a6d4c110f7c25d68445b64427.tar.gz stable-diffusion-webui-gfx803-b28cf84c3632df4a6d4c110f7c25d68445b64427.tar.bz2 stable-diffusion-webui-gfx803-b28cf84c3632df4a6d4c110f7c25d68445b64427.zip |
prevent repeating messages about too many tokens
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/processing.py b/modules/processing.py index 38e74fe2..93138e7c 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -180,7 +180,7 @@ def process_images(p: StableDiffusionProcessing) -> Processed: modules.sd_hijack.model_hijack.apply_circular(p.tiling)
- comments = []
+ comments = {}
shared.prompt_styles.apply_styles(p)
@@ -251,7 +251,8 @@ def process_images(p: StableDiffusionProcessing) -> Processed: c = p.sd_model.get_learned_conditioning(prompts)
if len(model_hijack.comments) > 0:
- comments += model_hijack.comments
+ for comment in model_hijack.comments:
+ comments[comment] = 1
# we manually generate all input noises because each one should have a specific seed
x = create_random_tensors([opt_C, p.height // opt_f, p.width // opt_f], seeds=seeds, subseeds=subseeds, subseed_strength=p.subseed_strength, seed_resize_from_h=p.seed_resize_from_h, seed_resize_from_w=p.seed_resize_from_w)
|