mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-19 17:47:25 -05:00
add gc after using consistency dec
This commit is contained in:
@@ -30,4 +30,5 @@ def decoder_model():
|
|||||||
def unload():
|
def unload():
|
||||||
global sd_vae_consistency_models
|
global sd_vae_consistency_models
|
||||||
if sd_vae_consistency_models is not None:
|
if sd_vae_consistency_models is not None:
|
||||||
|
devices.torch_gc()
|
||||||
sd_vae_consistency_models.ckpt.to('cpu')
|
sd_vae_consistency_models.ckpt.to('cpu')
|
||||||
|
|||||||
Reference in New Issue
Block a user