call lowvram.send_everything_to_cpu() for interrupted case

This commit is contained in:
Won-Kyu Park 2024-09-19 10:24:59 +09:00
parent 1f779226f0
commit 380e9a84c3
No known key found for this signature in database
GPG Key ID: 53AA79C8C9535D15

View File

@ -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