1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

[docs] Fix syntax for compel (#4794)

* fix syntax

* update image
This commit is contained in:
Steven Liu
2023-08-26 11:33:10 -07:00
committed by GitHub
parent 0de35e4a52
commit fed88195e3

View File

@@ -143,8 +143,8 @@ image
A conjunction diffuses each prompt independently and concatenates their results by their weighted sum. Add `.and()` to the end of a list of prompts to create a conjunction:
```py
prompt_embeds = compel_proc('("a red cat, playing with a, ball").and()')
generator = torch.Generator(device="cuda").manual_seed(33)
prompt_embeds = compel_proc('["a red cat", "playing with a", "ball"].and()')
generator = torch.Generator(device="cuda").manual_seed(55)
image = pipe(prompt_embeds=prompt_embeds, generator=generator, num_inference_steps=20).images[0]
image