This commit is contained in:
AI-Casanova
2024-01-13 11:48:58 -06:00
parent d4752f46ec
commit 1edecc2389
2 changed files with 59 additions and 48 deletions
+1 -2
View File
@@ -217,8 +217,7 @@ def process_diffusers(p: StableDiffusionProcessing):
parser = 'Fixed attention'
if shared.opts.prompt_attention != 'Fixed attention' and 'StableDiffusion' in model.__class__.__name__:
try:
prompt_parser_diffusers.encode_prompts(model, p, prompts, negative_prompts, kwargs.get("num_inference_steps", 1), 0, kwargs.pop("clip_skip", None))
# prompt_embed, pooled, negative_embed, negative_pooled = , , , ,
prompt_parser_diffusers.encode_prompts(model, p, prompts, negative_prompts, kwargs.get("num_inference_steps", 1), kwargs.pop("clip_skip", None))
parser = shared.opts.prompt_attention
except Exception as e:
shared.log.error(f'Prompt parser encode: {e}')