mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-02-10 23:52:54 +08:00
prevent repeating messages about too many tokens
This commit is contained in:
parent
dfb2e830d9
commit
b28cf84c36
@ -180,7 +180,7 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
|
|||||||
|
|
||||||
modules.sd_hijack.model_hijack.apply_circular(p.tiling)
|
modules.sd_hijack.model_hijack.apply_circular(p.tiling)
|
||||||
|
|
||||||
comments = []
|
comments = {}
|
||||||
|
|
||||||
shared.prompt_styles.apply_styles(p)
|
shared.prompt_styles.apply_styles(p)
|
||||||
|
|
||||||
@ -251,7 +251,8 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
|
|||||||
c = p.sd_model.get_learned_conditioning(prompts)
|
c = p.sd_model.get_learned_conditioning(prompts)
|
||||||
|
|
||||||
if len(model_hijack.comments) > 0:
|
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
|
# 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)
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user