Small tweaks and bug fixes and future proofing

This commit is contained in:
Jaret Burkett committed 2025-04-05 12:39:45 -06:00
1 parent ead23cee88
commit 2b901cca39
4 files changed
+15 -6

No files matched your search

+4
View File
@@ -361,6 +361,10 @@ class LoRASpecialNetwork(ToolkitNetworkMixin, LoRANetwork):
if self.transformer_only and is_unet and hasattr(root_module, 'blocks'):
if "blocks" not in lora_name:
skip = True
if self.transformer_only and is_unet and hasattr(root_module, 'single_blocks'):
if "single_blocks" not in lora_name and "double_blocks" not in lora_name:
skip = True
if (is_linear or is_conv2d) and not skip: