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

fixes https://github.com/lllyasviel/Fooocus/issues/2372
This commit is contained in:
Manuel Schmid
2024-07-17 10:49:55 +02:00
parent bb0c7fbc3a
commit 5c43a4bece
3 changed files with 5 additions and 8 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 = {}