Update and rename TEXTUAL_INVERSION.md to TRAINING.md

This commit is contained in:
Kent Keirsey 2023-07-06 11:52:49 -04:00 committed by GitHub
parent 82978d3ee5
commit 2eddd5db7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,10 @@
--- ---
title: Textual-Inversion title: Training
--- ---
# :material-file-document: Textual Inversion # :material-file-document: Training
# Textual Inversion Training
## **Personalizing Text-to-Image Generation** ## **Personalizing Text-to-Image Generation**
You may personalize the generated images to provide your own styles or objects You may personalize the generated images to provide your own styles or objects
@ -258,16 +259,6 @@ invokeai-ti \
--only_save_embeds --only_save_embeds
``` ```
## Using Embeddings
After training completes, the resultant embeddings will be saved into your `$INVOKEAI_ROOT/embeddings/<trigger word>/learned_embeds.bin`.
These will be automatically loaded when you start InvokeAI.
Add the trigger word, surrounded by angle brackets, to use that embedding. For example, if your trigger word was `terence`, use `<terence>` in prompts. This is the same syntax used by the HuggingFace concepts library.
**Note:** `.pt` embeddings do not require the angle brackets.
## Troubleshooting ## Troubleshooting
### `Cannot load embedding for <trigger>. It was trained on a model with token dimension 1024, but the current model has token dimension 768` ### `Cannot load embedding for <trigger>. It was trained on a model with token dimension 1024, but the current model has token dimension 768`