This commit is contained in:
Vladimir Mandic
2024-02-08 20:06:31 -05:00
parent 2dbf674f1e
commit c9444c8bd9
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -175,7 +175,7 @@ def process_diffusers(p: processing.StableDiffusionProcessing):
prompts, negative_prompts, prompts_2, negative_prompts_2 = fix_prompts(prompts, negative_prompts, prompts_2, negative_prompts_2)
parser = 'Fixed attention'
clip_skip = kwargs.pop("clip_skip", None)
if clip_skip is not None:
if clip_skip is not None and 'XL' in model.__class__.__name__:
clip_skip -= 1
if shared.opts.prompt_attention != 'Fixed attention' and 'StableDiffusion' in model.__class__.__name__ and 'Onnx' not in model.__class__.__name__:
try: