diff options
author | Adi Eyal <adi@clearforest.io> | 2022-11-30 13:23:53 +0000 |
---|---|---|
committer | Adi Eyal <adi@clearforest.io> | 2022-11-30 13:23:53 +0000 |
commit | a44994e2c926fc1f8479281e5b1e08d7fe9db2bb (patch) | |
tree | 5307b512c4d2eaa3932c26be31c2462d1232d74d | |
parent | 4b3c5bc24bffdf429c463a465763b3077fe55eb8 (diff) | |
download | stable-diffusion-webui-gfx803-a44994e2c926fc1f8479281e5b1e08d7fe9db2bb.tar.gz stable-diffusion-webui-gfx803-a44994e2c926fc1f8479281e5b1e08d7fe9db2bb.tar.bz2 stable-diffusion-webui-gfx803-a44994e2c926fc1f8479281e5b1e08d7fe9db2bb.zip |
Fixed incorrect negative prompt text in infotext
Previously only the first negative prompt in all_negative_prompts was
being used for infotext. This fixes that by selecting the index-th
negative prompt
-rw-r--r-- | modules/processing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py index edceb532..0a73ccbb 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -414,7 +414,7 @@ def create_infotext(p, all_prompts, all_seeds, all_subseeds, comments, iteration generation_params_text = ", ".join([k if k == v else f'{k}: {generation_parameters_copypaste.quote(v)}' for k, v in generation_params.items() if v is not None])
- negative_prompt_text = "\nNegative prompt: " + p.all_negative_prompts[0] if p.all_negative_prompts[0] else ""
+ negative_prompt_text = "\nNegative prompt: " + p.all_negative_prompts[index] if p.all_negative_prompts[index] else ""
return f"{all_prompts[index]}{negative_prompt_text}\n{generation_params_text}".strip()
|