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:
DenOfEquity
2024-10-12 12:51:26 +01:00
committed by GitHub
parent 82eb756617
commit ae8187bf2d
2 changed files with 9 additions and 8 deletions

View File

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