diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-19 05:05:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-19 05:05:36 +0000 |
commit | 9182dd7e5d4e721f98d8292bfdf597897331fa78 (patch) | |
tree | c3d5192726fa681c2e5ae995cd14c7ab88097542 /modules/processing.py | |
parent | f739e3e05d52d6040fec62b561ad37c952ca7d22 (diff) | |
parent | 9d1d63afcaffc57e9dff5bdc59643ddd60f377e4 (diff) | |
download | stable-diffusion-webui-gfx803-9182dd7e5d4e721f98d8292bfdf597897331fa78.tar.gz stable-diffusion-webui-gfx803-9182dd7e5d4e721f98d8292bfdf597897331fa78.tar.bz2 stable-diffusion-webui-gfx803-9182dd7e5d4e721f98d8292bfdf597897331fa78.zip |
Merge pull request #12634 from catboxanon/feat/live-preview-fast-interrupt
Improve interrupt speed
Diffstat (limited to 'modules/processing.py')
-rwxr-xr-x | modules/processing.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/processing.py b/modules/processing.py index 0315e1fd..ea481fab 100755 --- a/modules/processing.py +++ b/modules/processing.py @@ -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
|