fix: resolve circular dependency for sha256, update files and init cache after initial model download

fixes https://github.com/lllyasviel/Fooocus/issues/2372

(cherry picked from commit 5c43a4bece)
This commit is contained in:
Manuel Schmid
2024-07-17 10:51:50 +02:00
parent 1f429ffeda
commit 9f93cf6110
3 changed files with 5 additions and 7 deletions
+1 -2
View File
@@ -4,8 +4,7 @@ from concurrent.futures import ThreadPoolExecutor
from multiprocessing import cpu_count
import args_manager
from modules.util import get_file_from_folder_list
from modules.util import sha256, HASH_SHA256_LENGTH
from modules.util import sha256, HASH_SHA256_LENGTH, get_file_from_folder_list
hash_cache_filename = 'hash_cache.txt'
hash_cache = {}