This commit is contained in:
Jaret Burkett
2025-03-03 08:22:15 -07:00
parent 3c8c84f156
commit 1f3f45a48d
3 changed files with 8 additions and 3 deletions

View File

@@ -344,8 +344,9 @@ class LoRASpecialNetwork(ToolkitNetworkMixin, LoRANetwork):
if (is_linear or is_conv2d) and not skip:
if self.only_if_contains is not None and not any([word in clean_name for word in self.only_if_contains]):
continue
if self.only_if_contains is not None:
if not any([word in clean_name for word in self.only_if_contains]) and not any([word in lora_name for word in self.only_if_contains]):
continue
dim = None
alpha = None