mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
hidiffusion disable embeds cache
This commit is contained in:
@@ -10,7 +10,7 @@ def apply_hidiffusion(p, model_type):
|
||||
shared.log.warning(f'HiDiffusion: class={shared.sd_model.__class__.__name__} not supported')
|
||||
return
|
||||
remove_hidiffusion(p)
|
||||
if p.hidiffusion:
|
||||
if getattr(p, 'hidiffusion', False) is True:
|
||||
t0 = time.time()
|
||||
hidiffusion.is_aggressive_raunet = shared.opts.hidiffusion_steps > 0
|
||||
hidiffusion.aggressive_step = shared.opts.hidiffusion_steps
|
||||
|
||||
@@ -130,6 +130,8 @@ def get_tokens(msg, prompt):
|
||||
|
||||
|
||||
def encode_prompts(pipe, p, prompts: list, negative_prompts: list, steps: int, clip_skip: typing.Optional[int] = None):
|
||||
if getattr(p, 'hidiffusion', False) is True:
|
||||
cache.clear()
|
||||
if 'StableDiffusion' not in pipe.__class__.__name__ and 'DemoFusion' not in pipe.__class__.__name__ and 'StableCascade' not in pipe.__class__.__name__:
|
||||
shared.log.warning(f"Prompt parser not supported: {pipe.__class__.__name__}")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user