From d753a9df952ea640acbce724e8153356c8b68424 Mon Sep 17 00:00:00 2001 From: Zaprudin Aleksey Date: Fri, 13 Jan 2023 22:25:33 +0500 Subject: [PATCH] fix progress bar behavior for "Prompts from file or textbox" script --- scripts/prompts_from_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/prompts_from_file.py b/scripts/prompts_from_file.py index 2751f98aa..1fe10a7c5 100644 --- a/scripts/prompts_from_file.py +++ b/scripts/prompts_from_file.py @@ -146,7 +146,7 @@ class Script(scripts.Script): else: args = {"prompt": line} - n_iter = args.get("n_iter", 1) + n_iter = args.get("n_iter", p.n_iter) if n_iter != 1: job_count += n_iter else: