Skip to content

Commit

Permalink
typo: cmd_opts.embedding_dir to cmd_opts.embeddings_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaker authored and AUTOMATIC1111 committed Oct 26, 2022
1 parent 99d728b commit 737eb28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/textual_inversion/textual_inversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def train_embedding(embedding_name, learn_rate, batch_size, data_root, log_direc
embedding.cached_checksum = None
# Before saving for the last time, change name back to base name (as opposed to the save_embedding_every step-suffixed naming convention).
embedding.name = embedding_name
filename = os.path.join(shared.cmd_opts.embedding_dir, f'{embedding.name}.pt')
filename = os.path.join(shared.cmd_opts.embeddings_dir, f'{embedding.name}.pt')
embedding.save(filename)

return embedding, filename

0 comments on commit 737eb28

Please sign in to comment.