mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-21 15:23:58 +00:00
Update sd_models.py
This commit is contained in:
@@ -586,6 +586,8 @@ def load_model(checkpoint_info=None, already_loaded_state_dict=None):
|
||||
return model_data.sd_model
|
||||
|
||||
model_data.sd_model = None
|
||||
model_management.unload_all_models()
|
||||
|
||||
devices.torch_gc()
|
||||
|
||||
timer.record("unload existing model")
|
||||
|
||||
Reference in New Issue
Block a user