Skip to content

Commit e80429f

Browse files
Add an example for how to use embeddings.
1 parent 9e2ee3a commit e80429f

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Here are some more advanced examples:
1616

1717
[Lora](lora)
1818

19+
[Embeddings/Textual Inversion](textual_inversion_embeddings)
20+
1921
[Upscale Models (ESRGAN, etc..)](upscale_models)
2022

2123
[Area Composition](area_composition)
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Textual Inversion Embeddings Examples
2+
3+
Here is an example for how to use Textual Inversion/Embeddings.
4+
5+
![Example](embedding_example.png)
6+
7+
To use an embedding put the file in the models/embeddings folder then use it in your prompt like I used the SDA768.pt embedding in the previous picture.
8+
9+
Note that you can omit the filename extension so these two are equivalent:
10+
11+
```embedding:SDA768.pt```
12+
13+
```embedding:SDA768```
14+
15+
Embeddings are basically custom words so where you put them in the text prompt matters.
16+
17+
18+
For example if you had an embedding of a cat:
19+
20+
```red embedding:cat```
21+
22+
This would likely give you a red cat.
23+
Loading

0 commit comments

Comments
 (0)