From 8c305fd68c25ffeb8073e7b7dd4e81c8d513e90e Mon Sep 17 00:00:00 2001 From: CalamitousFelicitousness Date: Sun, 7 Jun 2026 00:37:15 +0100 Subject: [PATCH] refactor(processing): drop dead model-level keep_prompts check Nothing sets keep_prompts on the model, so the guard never affected behavior. JSON-caption prompts are preserved by the JSON short-circuit in apply_curly_braces_to_prompt; the per-process p.keep_prompts path (detailer, mixture-of-diffusers) is unchanged. --- modules/processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/processing.py b/modules/processing.py index d73ea8973..56d6da3f1 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -278,7 +278,7 @@ def process_init(p: StableDiffusionProcessing): else: p.all_subseeds = [int(subseed) + x for x in range(len(p.all_prompts))] if reset_prompts: - if not hasattr(p, 'keep_prompts') and not getattr(shared.sd_model, 'keep_prompts', False): + if not hasattr(p, 'keep_prompts'): p.all_prompts, p.all_negative_prompts = shared.prompt_styles.apply_styles_to_prompts(p.all_prompts, p.all_negative_prompts, p.styles, p.all_seeds, p=p) p.prompts = p.all_prompts[(p.iteration * p.batch_size):((p.iteration+1) * p.batch_size)] p.negative_prompts = p.all_negative_prompts[(p.iteration * p.batch_size):((p.iteration+1) * p.batch_size)]