Exit out of hires fix if interrupted earlier

This commit is contained in:
catboxanon 2023-08-18 05:55:10 -04:00
parent 3ce5fb8e5c
commit 9d1d63afca

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