Skip to content

Commit

Permalink
Merge pull request #14237 from ReneKroon/dev
Browse files Browse the repository at this point in the history
#13354 : solve lora loading issue
  • Loading branch information
AUTOMATIC1111 committed Dec 14, 2023
1 parent eb52c80 commit 2be85f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extensions-builtin/Lora/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ 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)
key_network_without_network_parts, _, network_part = key_network.partition(".")

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 2be85f8

Please sign in to comment.