LoRA loading: forward exclusions when preprocessing parts of the UNet

This commit is contained in:
Pierre Chapuis 2024-03-13 14:58:26 +01:00
parent ff5341c85c
commit e32d8d16f0

View file

@ -184,7 +184,7 @@ class SDLoraManager:
for exc_k, exc_v in preprocess.items():
ls = {k: v for k, v in loras_excluded.items() if exc_k in k}
auto_attach_loras(ls, self.unet, include=[exc_v], debug_map=debug_map)
auto_attach_loras(ls, self.unet, include=[exc_v], exclude=exclude, debug_map=debug_map)
auto_attach_loras(
loras_remaining,