Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
d0416ab0
Unverified
Commit
d0416ab0
authored
Jun 05, 2023
by
pdoane
Committed by
GitHub
Jun 05, 2023
Browse files
Update Compel documentation for textual inversions (#3663)
* Update Compel documentation for textual inversions * Fix typo
parent
1994dbcb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
docs/source/en/using-diffusers/weighted_prompts.mdx
docs/source/en/using-diffusers/weighted_prompts.mdx
+10
-0
No files found.
docs/source/en/using-diffusers/weighted_prompts.mdx
View file @
d0416ab0
...
@@ -94,5 +94,15 @@ a try!
...
@@ -94,5 +94,15 @@ a try!
If your favorite pipeline does not have a `prompt_embeds` input, please make sure to open an issue, the
If your favorite pipeline does not have a `prompt_embeds` input, please make sure to open an issue, the
diffusers team tries to be as responsive as possible.
diffusers team tries to be as responsive as possible.
Compel 1.1.6 adds a utility class to simplify using textual inversions. Instantiate a `DiffusersTextualInversionManager` and pass it to Compel init:
```
textual_inversion_manager = DiffusersTextualInversionManager(pipe)
compel = Compel(
tokenizer=pipe.tokenizer,
text_encoder=pipe.text_encoder,
textual_inversion_manager=textual_inversion_manager)
```
Also, please check out the documentation of the [compel](https://github.com/damian0815/compel) library for
Also, please check out the documentation of the [compel](https://github.com/damian0815/compel) library for
more information.
more information.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment