aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-11-03 20:16:58 +0300
committerGitHub <noreply@github.com>2023-11-03 20:16:58 +0300
commit21d561885ec9c89f30e7693aff88acccff2b0093 (patch)
treefa67f6ac65c8dcbe860a1c0ad2dcaedc147c335c /modules
parent73c74baa6a8ce4973794a4b6cf5ffc780bca8e8e (diff)
parent5121846d34d74aee9b55d48d35c1559a710051b0 (diff)
Merge pull request #13762 from wkpark/nextjob
call state.jobnext() before postproces*()
Diffstat (limited to 'modules')
-rw-r--r--modules/processing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/processing.py b/modules/processing.py
index 40598f5c..70ad1ebe 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -886,6 +886,8 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
devices.torch_gc()
+ state.nextjob()
+
if p.scripts is not None:
p.scripts.postprocess_batch(p, x_samples_ddim, batch_number=n)
@@ -958,8 +960,6 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
devices.torch_gc()
- state.nextjob()
-
if not infotexts:
infotexts.append(Processed(p, []).infotext(p, 0))