mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-02-01 11:13:00 +08:00
call lowvram.send_everything_to_cpu() for interrupted case
This commit is contained in:
parent
1f779226f0
commit
380e9a84c3
@ -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…
Reference in New Issue
Block a user