Skip to content

Commit

Permalink
AUTOMATIC1111#13354 Fix lora loading
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneKroon committed Dec 7, 2023
1 parent 48fae7c commit 7a77055
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion extensions-builtin/Lora/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ def load_network(name, network_on_disk):
bundle_embeddings = {}

for key_network, weight in sd.items():
key_network_without_network_parts, network_part = key_network.split(".", 1)
if "." in key_network:
key_network_without_network_parts, network_part = key_network.split(".", 1)
else:
key_network_without_network_parts = key_network
network_part = None
if key_network_without_network_parts == "bundle_emb":
emb_name, vec_name = network_part.split(".", 1)
emb_dict = bundle_embeddings.get(emb_name, {})
Expand Down

0 comments on commit 7a77055

Please sign in to comment.