From fbdec2ef201b6bf7f1d501347513bd5dd9e42c79 Mon Sep 17 00:00:00 2001 From: Lukas Meller Date: Fri, 9 Sep 2022 21:55:54 +0200 Subject: [PATCH] Fix prompt matrix script --- modules/processing.py | 2 +- scripts/prompt_matrix.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/processing.py b/modules/processing.py index 7e6cd8ee6..816fdd186 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -176,7 +176,7 @@ def process_images(p: StableDiffusionProcessing) -> Processed: all_prompts = p.batch_size * p.n_iter * [p.prompt] if type(p.seed) == list: - all_seeds = int(p.seed) + all_seeds = p.seed else: all_seeds = [int(p.seed + x) for x in range(len(all_prompts))] diff --git a/scripts/prompt_matrix.py b/scripts/prompt_matrix.py index f8da0fdd3..776f84f3c 100644 --- a/scripts/prompt_matrix.py +++ b/scripts/prompt_matrix.py @@ -51,6 +51,7 @@ class Script(scripts.Script): def run(self, p, put_at_start): modules.processing.fix_seed(p) + seed = p.seed original_prompt = p.prompt[0] if type(p.prompt) == list else p.prompt