better en preview matching and optimize caching

This commit is contained in:
Vladimir Mandic
2024-01-19 13:50:19 -05:00
parent 5e1d316f24
commit 7c8d035edb
13 changed files with 146 additions and 159 deletions
+1 -5
View File
@@ -286,11 +286,7 @@ def list_hypernetworks(path):
hypernetworks = {
os.path.splitext(os.path.basename(hypernetwork_path))[0]: hypernetwork_path
for hypernetwork_path
in files_cache.list_files(
path,
ext_filter=['.pt'],
recursive=files_cache.not_hidden
)
in files_cache.list_files(path, ext_filter=['.pt'], recursive=files_cache.not_hidden)
}
return hypernetworks