Skip to content

Commit

Permalink
Also use name property of loaded embedding .pt just like image embedd…
Browse files Browse the repository at this point in the history
…ings
  • Loading branch information
R-N committed Nov 3, 2022
1 parent efd4042 commit 157907c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/textual_inversion/textual_inversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def process_file(path, filename):
name = data.get('name', name)
else:
data = torch.load(path, map_location="cpu")
name = data.get('name', name)

# textual inversion embeddings
if 'string_to_param' in data:
Expand Down

0 comments on commit 157907c

Please # to comment.