aboutsummaryrefslogtreecommitdiffstats
path: root/modules/scripts.py
diff options
context:
space:
mode:
authorArtem Zagidulin <p0chta@yandex.ru>2022-11-02 18:30:50 +0000
committerArtem Zagidulin <p0chta@yandex.ru>2022-11-02 18:30:50 +0000
commitde64146ad2fc2030a4cd3545676f9e18c93b8b18 (patch)
tree4f8770ee3416bc2ad6e2ad8464ae7fa644b776e0 /modules/scripts.py
parenta9e979977a8e3999b01b6a086bb1332ab7ab308b (diff)
downloadstable-diffusion-webui-gfx803-de64146ad2fc2030a4cd3545676f9e18c93b8b18.tar.gz
stable-diffusion-webui-gfx803-de64146ad2fc2030a4cd3545676f9e18c93b8b18.tar.bz2
stable-diffusion-webui-gfx803-de64146ad2fc2030a4cd3545676f9e18c93b8b18.zip
add number of itter
Diffstat (limited to 'modules/scripts.py')
-rw-r--r--modules/scripts.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/scripts.py b/modules/scripts.py
index 9f82efea..7aa0d56a 100644
--- a/modules/scripts.py
+++ b/modules/scripts.py
@@ -70,7 +70,7 @@ class Script:
pass
- def process_one(self, p, *args):
+ def process_one(self, p, n, *args):
"""
Same as process(), but called for every iteration
"""
@@ -301,11 +301,11 @@ class ScriptRunner:
print(f"Error running process: {script.filename}", file=sys.stderr)
print(traceback.format_exc(), file=sys.stderr)
- def process_one(self, p):
+ def process_one(self, p, n):
for script in self.alwayson_scripts:
try:
script_args = p.script_args[script.args_from:script.args_to]
- script.process_one(p, *script_args)
+ script.process_one(p, n, *script_args)
except Exception:
print(f"Error running process_one: {script.filename}", file=sys.stderr)
print(traceback.format_exc(), file=sys.stderr)