update clip-skip code

This commit is contained in:
Vladimir Mandic
2024-02-08 19:40:26 -05:00
parent e883348089
commit f56d210854
5 changed files with 10 additions and 12 deletions
+1 -2
View File
@@ -89,8 +89,7 @@ def get_prompt_schedule(prompt, steps):
return temp, len(schedule) > 1
def encode_prompts(pipe, p, prompts: list, negative_prompts: list, steps: int,
clip_skip: typing.Optional[int] = None):
def encode_prompts(pipe, p, prompts: list, negative_prompts: list, steps: int, clip_skip: typing.Optional[int] = None):
if 'StableDiffusion' not in pipe.__class__.__name__ and 'DemoFusion':
shared.log.warning(f"Prompt parser not supported: {pipe.__class__.__name__}")
return None, None, None, None