"git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "2e5203be043f107eae5c1b6788584d199f403286"
Unverified Commit d0416ab0 authored by pdoane's avatar pdoane Committed by GitHub
Browse files

Update Compel documentation for textual inversions (#3663)

* Update Compel documentation for textual inversions

* Fix typo
parent 1994dbcb
...@@ -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.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment