From fed88195e363689d92c5626e48ced31d007a67be Mon Sep 17 00:00:00 2001 From: Steven Liu <59462357+stevhliu@users.noreply.github.com> Date: Sat, 26 Aug 2023 11:33:10 -0700 Subject: [PATCH] [docs] Fix syntax for compel (#4794) * fix syntax * update image --- docs/source/en/using-diffusers/weighted_prompts.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/en/using-diffusers/weighted_prompts.md b/docs/source/en/using-diffusers/weighted_prompts.md index acc57f2a3f..ede2c7f351 100644 --- a/docs/source/en/using-diffusers/weighted_prompts.md +++ b/docs/source/en/using-diffusers/weighted_prompts.md @@ -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