Unverified Commit 21d56188 authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub
Browse files

Merge pull request #13762 from wkpark/nextjob

call state.jobnext() before postproces*()
parents 73c74baa 5121846d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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))