change hypernets to use sha256 hashes

This commit is contained in:
AUTOMATIC
2023-01-14 10:25:21 +03:00
parent a95f135308
commit f9ac3352cb
4 changed files with 26 additions and 19 deletions

View File

@@ -125,7 +125,7 @@ def list_models():
def get_closet_checkpoint_match(search_string):
checkpoint_info = checkpoint_alisases.get(search_string, None)
if checkpoint_info is not None:
return
return checkpoint_info
found = sorted([info for info in checkpoints_list.values() if search_string in info.title], key=lambda x: len(x.title))
if found: