mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
clear-cache on model unload
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -1086,6 +1086,7 @@ def clear_caches():
|
||||
|
||||
|
||||
def unload_model_weights(op='model'):
|
||||
clear_caches()
|
||||
if shared.compiled_model_state is not None:
|
||||
shared.compiled_model_state.compiled_cache.clear()
|
||||
shared.compiled_model_state.req_cache.clear()
|
||||
|
||||
Reference in New Issue
Block a user