Merge pull request #12634 from catboxanon/feat/live-preview-fast-interrupt

Improve interrupt speed
This commit is contained in:
AUTOMATIC1111 2023-08-19 08:05:36 +03:00 committed by GitHub
commit 9182dd7e5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View file

@ -1155,6 +1155,9 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
devices.torch_gc()
def sample_hr_pass(self, samples, decoded_samples, seeds, subseeds, subseed_strength, prompts):
if shared.state.interrupted:
return samples
self.is_hr_pass = True
target_width = self.hr_upscale_to_x