Skip to content

Commit

Permalink
fix broken sd1.x PTI caused by SDXL PTI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
feffy380 committed Apr 2, 2024
1 parent ef4f5ea commit aba39c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ def save_model(ckpt_name, unwrapped_nw, steps, epoch_no, embeddings_map, force_s
state_dict[key2] = embs[1]
else:
key = f"bundle_emb.{emb_name}.string_to_param.*"
state_dict[key] = embeddings_map[emb_name]
state_dict[key] = embeddings_map[emb_name][0]

if metadata_to_save is not None and len(metadata_to_save) == 0:
metadata_to_save = None
Expand Down

0 comments on commit aba39c0

Please sign in to comment.