add gc after using consistency dec

This commit is contained in:
Kohaku-Blueleaf 2023-11-07 13:01:10 +08:00
parent 2ea8726597
commit a36a30fb93
1 changed files with 1 additions and 0 deletions

View File

@ -30,4 +30,5 @@ def decoder_model():
def unload():
global sd_vae_consistency_models
if sd_vae_consistency_models is not None:
devices.torch_gc()
sd_vae_consistency_models.ckpt.to('cpu')