mirror of
https://github.com/openvinotoolkit/stable-diffusion-webui.git
synced 2024-12-14 14:45:06 +03:00
simplify expression in prompts from file script
This commit is contained in:
parent
27c1b3b816
commit
69781031e7
@ -146,11 +146,7 @@ class Script(scripts.Script):
|
||||
else:
|
||||
args = {"prompt": line}
|
||||
|
||||
n_iter = args.get("n_iter", p.n_iter)
|
||||
if n_iter != 1:
|
||||
job_count += n_iter
|
||||
else:
|
||||
job_count += 1
|
||||
job_count += args.get("n_iter", p.n_iter)
|
||||
|
||||
jobs.append(args)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user