Commit 5121846d authored by Won-Kyu Park's avatar Won-Kyu Park

call state.jobnext() before postproces*()

parent 464fbcd9
...@@ -886,6 +886,8 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed: ...@@ -886,6 +886,8 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
devices.torch_gc() devices.torch_gc()
state.nextjob()
if p.scripts is not None: if p.scripts is not None:
p.scripts.postprocess_batch(p, x_samples_ddim, batch_number=n) p.scripts.postprocess_batch(p, x_samples_ddim, batch_number=n)
...@@ -958,8 +960,6 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed: ...@@ -958,8 +960,6 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
devices.torch_gc() devices.torch_gc()
state.nextjob()
if not infotexts: if not infotexts:
infotexts.append(Processed(p, []).infotext(p, 0)) infotexts.append(Processed(p, []).infotext(p, 0))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment