mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
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 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user