mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-02-03 06:13:06 -08:00
call lowvram.send_everything_to_cpu() for interrupted case
This commit is contained in:
parent
1f779226f0
commit
380e9a84c3
1 changed files with 5 additions and 0 deletions
|
|
@ -1147,6 +1147,11 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
|
|||
if p.scripts is not None:
|
||||
p.scripts.postprocess(p, res)
|
||||
|
||||
|
||||
if lowvram.is_enabled(shared.sd_model):
|
||||
# for interrupted case
|
||||
lowvram.send_everything_to_cpu()
|
||||
|
||||
return res
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue