From 9d42c7c4836c27bb53d47218c03ac618a424bdca Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Tue, 21 Jul 2026 16:04:10 +0200 Subject: [PATCH] cleanup Signed-off-by: Vladimir Mandic --- modules/transformer_cache.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/transformer_cache.py b/modules/transformer_cache.py index 1a618c80a..0c204ff9f 100644 --- a/modules/transformer_cache.py +++ b/modules/transformer_cache.py @@ -19,15 +19,15 @@ def set_cache(faster_cache=None, pyramid_attention_broadcast=None): return try: if faster_cache: # https://github.com/huggingface/diffusers/pull/10163 - distilled = shared.opts.fc_guidance_distilled or shared.sd_model_type == 'f1' + distilled = shared.opts.fc_guidance_distilled config = diffusers.FasterCacheConfig( spatial_attention_block_skip_range=shared.opts.fc_spacial_skip_range, spatial_attention_timestep_skip_range=(int(shared.opts.fc_spacial_skip_start), int(shared.opts.fc_spacial_skip_end)), unconditional_batch_skip_range=shared.opts.fc_uncond_skip_range, unconditional_batch_timestep_skip_range=(int(shared.opts.fc_uncond_skip_start), int(shared.opts.fc_uncond_skip_end)), attention_weight_callback=lambda _: shared.opts.fc_attention_weight, - tensor_format=shared.opts.fc_tensor_format, # TODO fc: autodetect tensor format based on model - is_guidance_distilled=distilled, # TODO fc: autodetect distilled based on model + tensor_format=shared.opts.fc_tensor_format, + is_guidance_distilled=distilled, current_timestep_callback=lambda: shared.sd_model.current_timestep, ) shared.sd_model.transformer.disable_cache()