mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-22 07:19:21 +00:00
Unload all models control (#2038)
* make unload_model_weights do that * rename Settings > Actions > unload checkpoint button to 'Unload all models' * remove (comment out) reload button, as it does nothing and is unlikely to ever do anything since models are loaded on demand
This commit is contained in:
@@ -449,6 +449,7 @@ def reload_model_weights(sd_model=None, info=None, forced_reload=False):
|
||||
|
||||
|
||||
def unload_model_weights(sd_model=None, info=None):
|
||||
memory_management.unload_all_models()
|
||||
pass
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user