restore default sampler on mismatch

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-08-13 14:49:11 -04:00
parent 867c5abc5c
commit 4d95cf47ce
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ def check_cache(opts):
from modules.modelstats import stat
if opts.hfcache_dir != prev_default:
size, _mtime = stat(prev_default)
if (size//1024//1024 > 0):
if size//1024//1024 > 0:
log.warning(f'Cache location changed: previous="{prev_default}" size={size//1024//1024} MB')
size, _mtime = stat(opts.hfcache_dir)
log.debug(f'Huggingface cache: path="{opts.hfcache_dir}" size={size//1024//1024} MB')