Unverified Commit fed88195 authored by Steven Liu's avatar Steven Liu Committed by GitHub
Browse files

[docs] Fix syntax for compel (#4794)

* fix syntax

* update image
parent 0de35e4a
...@@ -143,8 +143,8 @@ image ...@@ -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: 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 ```py
prompt_embeds = compel_proc('("a red cat, playing with a, ball").and()') prompt_embeds = compel_proc('["a red cat", "playing with a", "ball"].and()')
generator = torch.Generator(device="cuda").manual_seed(33) generator = torch.Generator(device="cuda").manual_seed(55)
image = pipe(prompt_embeds=prompt_embeds, generator=generator, num_inference_steps=20).images[0] image = pipe(prompt_embeds=prompt_embeds, generator=generator, num_inference_steps=20).images[0]
image image
......
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