From 3779beb3484d868d9c4813339a559f87aadb5a6f Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Sat, 26 Aug 2023 10:36:07 -0700 Subject: [PATCH 1/2] fix syntax --- docs/source/en/using-diffusers/weighted_prompts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/en/using-diffusers/weighted_prompts.md b/docs/source/en/using-diffusers/weighted_prompts.md index acc57f2a3f1e..ac9af85aee62 100644 --- a/docs/source/en/using-diffusers/weighted_prompts.md +++ b/docs/source/en/using-diffusers/weighted_prompts.md @@ -143,7 +143,7 @@ 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()') +prompt_embeds = compel_proc('["a red cat", "playing with a", "ball"].and()') generator = torch.Generator(device="cuda").manual_seed(33) image = pipe(prompt_embeds=prompt_embeds, generator=generator, num_inference_steps=20).images[0] From 9f5ab89757ae909ce11e47e629bb6d7425cce9ad Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Sat, 26 Aug 2023 10:47:33 -0700 Subject: [PATCH 2/2] update image --- docs/source/en/using-diffusers/weighted_prompts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/en/using-diffusers/weighted_prompts.md b/docs/source/en/using-diffusers/weighted_prompts.md index ac9af85aee62..ede2c7f35169 100644 --- a/docs/source/en/using-diffusers/weighted_prompts.md +++ b/docs/source/en/using-diffusers/weighted_prompts.md @@ -144,7 +144,7 @@ A conjunction diffuses each prompt independently and concatenates their results ```py 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