11 Embeddings
direwolf420 edited this page 2023-09-01 18:47:25 +02:00

Embeddings (or textual inversion embeddings) are small models that can teach the AI new words (along with their meaning). This is useful if you want the AI to draw specific concepts, or faces, or things. It's also useful if you want the AI to avoid specific concepts or things.

An embedding can be used as a word in the prompt (or negative prompt) used to make an image. You can use multiple embeddings in the same prompt.

How to use

  1. Download the embedding model file and put it into the models/embeddings folder.
  2. Click the refresh icon image next to the Stable Diffusion models dropdown.
  3. Add the embedding to the prompt by clicking the + Embedding button above the prompt box image
  4. Then click the embedding to use. It'll insert the embedding word in the prompt textbox. You can change where the word is inserted (e.g. at the beginning of the prompt) by changing the Mode (top-right in the Embeddings popup).
  5. Generate an image.

Negative Embedding

You can also follow the same process to add negative embeddings. This will tell the AI to avoid that concept in the generated image.

Expand the Negative Prompt section, then click + Negative Embedding, and follow the same steps as mentioned above.

Tips

You can also just type the embedding word directly in the prompt, without using the Embeddings popup window. Type the embedding model filename (without the extension). E.g. cat-toy if the embedding filename is cat-toy.pt. Please replace any spaces in the filename with underscore _.

Web Resources