mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-26 20:02:31 -08:00
Merge pull request #12634 from catboxanon/feat/live-preview-fast-interrupt
Improve interrupt speed
This commit is contained in:
commit
9182dd7e5d
3 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue