summaryrefslogtreecommitdiffstats
path: root/train_dreambooth.py
diff options
context:
space:
mode:
Diffstat (limited to 'train_dreambooth.py')
-rw-r--r--train_dreambooth.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/train_dreambooth.py b/train_dreambooth.py
index f4d4cbb..2aca1e7 100644
--- a/train_dreambooth.py
+++ b/train_dreambooth.py
@@ -513,6 +513,7 @@ def main():
513 raise ValueError("--embeddings_dir must point to an existing directory") 513 raise ValueError("--embeddings_dir must point to an existing directory")
514 514
515 added_tokens, added_ids = load_embeddings_from_dir(tokenizer, embeddings, embeddings_dir) 515 added_tokens, added_ids = load_embeddings_from_dir(tokenizer, embeddings, embeddings_dir)
516 embeddings.persist()
516 print(f"Added {len(added_tokens)} tokens from embeddings dir: {list(zip(added_tokens, added_ids))}") 517 print(f"Added {len(added_tokens)} tokens from embeddings dir: {list(zip(added_tokens, added_ids))}")
517 518
518 if args.scale_lr: 519 if args.scale_lr: