AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
142.6k stars 26.9k forks source link

[Bug]: Alternate prompts don't work correctly with attention emphasis #3686

Closed 2x-y closed 1 year ago

2x-y commented 2 years ago

Is there an existing issue for this?

What happened?

The prompt [cat|dog] alternates the prompts per step. If you try and add attention / emphasis, the token gets ignored, so:

[(cat:1.1)|(dog:0.9)]

returns random garbage.

Steps to reproduce the problem

  1. Go to txt2image tab.
  2. Enter the prompt:

[(cat:1.1)|(dog:0.9)]

  1. Random garbage is generated. This happens with 1.4 or 1.5 models. 00452-3814316213- (cat_1 1)_(dog_0 9)

What should have happened?

It should alternate the prompt and respect the weightings.

Commit where the problem happens

3e15f8e0f5cc87507f77546d92435670644dbd18

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

--xformers --vae-path "C:\Users\<user>\Documents\GitHub\stable-diffusion-webui\models\Stable-diffusion\vae-ft-mse-840000-ema-pruned.vae.pt" --ckpt "C:\Users\<user>\Documents\GitHub\stable-diffusion-webui\models\Stable-diffusion\SD_1_5.ckpt"

Additional information, context and logs

No response

catboxanon commented 1 year ago

Was fixed a long while back by https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/035f2af050da98a8b3f847624ef3b5bc3395e87e, closing.