Skip to content

Commit 21d5618

Browse files
Merge pull request #13762 from wkpark/nextjob
call state.jobnext() before postproces*()
2 parents 73c74ba + 5121846 commit 21d5618

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/processing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,8 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
886886

887887
devices.torch_gc()
888888

889+
state.nextjob()
890+
889891
if p.scripts is not None:
890892
p.scripts.postprocess_batch(p, x_samples_ddim, batch_number=n)
891893

@@ -958,8 +960,6 @@ def infotext(index=0, use_main_prompt=False):
958960

959961
devices.torch_gc()
960962

961-
state.nextjob()
962-
963963
if not infotexts:
964964
infotexts.append(Processed(p, []).infotext(p, 0))
965965

0 commit comments

Comments
 (0)