add fused projections

This commit is contained in:
Vladimir Mandic
2024-01-02 09:41:15 -05:00
parent dc9778b701
commit f7cd47d96f
8 changed files with 60 additions and 10 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ def set_adapter(adapter_name: str = 'None'):
if getattr(shared.sd_model, 'image_encoder', None) is not None:
shared.log.debug('AnimateDiff: unloading IP adapter')
# shared.sd_model.image_encoder = None
shared.sd_model.unet.set_default_attn_processor()
# shared.sd_model.unet.set_default_attn_processor()
shared.sd_model.unet.config.encoder_hid_dim_type = None
if adapter_name.endswith('.ckpt') or adapter_name.endswith('.safetensors'):
import huggingface_hub as hf