Skip to content

Commit

Permalink
Merge pull request #13762 from wkpark/nextjob
Browse files Browse the repository at this point in the history
call state.jobnext() before postproces*()
  • Loading branch information
AUTOMATIC1111 authored Nov 3, 2023
2 parents 73c74ba + 5121846 commit 21d5618
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

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

devices.torch_gc()

state.nextjob()

if not infotexts:
infotexts.append(Processed(p, []).infotext(p, 0))

Expand Down

0 comments on commit 21d5618

Please sign in to comment.