feat: add hash_cache

This commit is contained in:
Manuel Schmid
2024-07-01 17:20:20 +02:00
parent 9178aa8ebb
commit 33b1c5cb87
4 changed files with 52 additions and 14 deletions
+4
View File
@@ -7,6 +7,7 @@ import args_manager
import tempfile
import modules.flags
import modules.sdxl_styles
from modules.hash_cache import load_cache_from_file, save_cache_to_file
from modules.model_loader import load_file_from_url
from modules.extra_utils import makedirs_with_log, get_files_from_folder, try_eval_env_var
@@ -755,3 +756,6 @@ def downloading_safety_checker_model():
update_files()
load_cache_from_file()
# write cache to file again for cleanup of invalid cache entries
save_cache_to_file()