Skip to content

Commit d0416ab

Browse files
authored
Update Compel documentation for textual inversions (#3663)
* Update Compel documentation for textual inversions * Fix typo
1 parent 1994dbc commit d0416ab

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/source/en/using-diffusers/weighted_prompts.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,15 @@ a try!
9494
If your favorite pipeline does not have a `prompt_embeds` input, please make sure to open an issue, the
9595
diffusers team tries to be as responsive as possible.
9696

97+
Compel 1.1.6 adds a utility class to simplify using textual inversions. Instantiate a `DiffusersTextualInversionManager` and pass it to Compel init:
98+
99+
```
100+
textual_inversion_manager = DiffusersTextualInversionManager(pipe)
101+
compel = Compel(
102+
tokenizer=pipe.tokenizer,
103+
text_encoder=pipe.text_encoder,
104+
textual_inversion_manager=textual_inversion_manager)
105+
```
106+
97107
Also, please check out the documentation of the [compel](https://github.com/damian0815/compel) library for
98108
more information.

0 commit comments

Comments
 (0)