From cfcc7c7338b05b9554887d83196e7ffd47bde4af Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 11 Jun 2026 08:11:20 +0000 Subject: [PATCH] Fix MuLan negative prompt overwriting the positive prompt When negative_prompt arrived as a list, the unwrap assigned it to p.prompt instead of p.negative_prompt, replacing the user's prompt with the negative prompt text and passing an unsupported list to the pipeline. https: //claude.ai/code/session_014QWKWgKvMevcuvfCnsYoT2 Co-Authored-By: Claude --- scripts/mulan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mulan.py b/scripts/mulan.py index 28a674b90..f2a8b6a4a 100644 --- a/scripts/mulan.py +++ b/scripts/mulan.py @@ -93,7 +93,7 @@ class MuLanScript(scripts_manager.Script): p.prompt = p.prompt[0] p.task_args['prompt'] = p.prompt if isinstance(p.negative_prompt, list): - p.prompt = p.negative_prompt[0] + p.negative_prompt = p.negative_prompt[0] p.task_args['negative_prompt'] = p.negative_prompt if pipe_type != ('sd15' if shared.sd_model_type == 'sd' else 'sdxl'):