You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/en/training/text_inversion.mdx
+41-4Lines changed: 41 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -157,24 +157,61 @@ If you're interested in following along with your model training progress, you c
157
157
158
158
## Inference
159
159
160
-
Once you have trained a model, you can use it for inference with the [`StableDiffusionPipeline`]. Make sure you include the `placeholder_token` in your prompt, in this case, it is `<cat-toy>`.
160
+
Once you have trained a model, you can use it for inference with the [`StableDiffusionPipeline`].
161
+
162
+
The textual inversion script will by default only save the textual inversion embedding vector(s) that have
163
+
been added to the text encoder embedding matrix and consequently been trained.
161
164
162
165
<frameworkcontent>
163
166
<pt>
167
+
<Tip>
168
+
169
+
💡 The community has created a large library of different textual inversion embedding vectors, called [sd-concepts-library](https://huggingface.co/sd-concepts-library).
170
+
Instead of training textual inversion embeddings from scratch you can also see whether a fitting textual inversion embedding has already been added to the libary.
171
+
172
+
</Tip>
173
+
174
+
To load the textual inversion embeddings you first need to load the base model that was used when training
175
+
your textual inversion embedding vectors. Here we assume that [`runwayml/stable-diffusion-v1-5`](runwayml/stable-diffusion-v1-5)
prompt = "charturnerv2, multiple views of the same character in the same outfit, a character turnaround of a woman wearing a black jacket and red shirt, best quality, intricate details."
0 commit comments