interrupt upscale

This commit is contained in:
Andray
2024-03-26 14:53:38 +04:00
parent dfbdb5a135
commit c321680b3d
2 changed files with 5 additions and 0 deletions

View File

@@ -60,6 +60,9 @@ class Upscaler:
if img.width >= dest_w and img.height >= dest_h:
break
if shared.state.interrupted:
break
shape = (img.width, img.height)
img = self.do_upscale(img, selected_model)