Skip to content

Commit a44994e

Browse files
committed
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
1 parent 4b3c5bc commit a44994e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/processing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def create_infotext(p, all_prompts, all_seeds, all_subseeds, comments, iteration
414414

415415
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])
416416

417-
negative_prompt_text = "\nNegative prompt: " + p.all_negative_prompts[0] if p.all_negative_prompts[0] else ""
417+
negative_prompt_text = "\nNegative prompt: " + p.all_negative_prompts[index] if p.all_negative_prompts[index] else ""
418418

419419
return f"{all_prompts[index]}{negative_prompt_text}\n{generation_params_text}".strip()
420420

0 commit comments

Comments
 (0)