diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-01-14 07:25:21 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-01-14 07:25:37 +0000 |
commit | f9ac3352cb66ce2bc0aa4325130fc7267fb35e4f (patch) | |
tree | 24bdf8da62c5f23dcbde515222669349609d5cff /modules/sd_models.py | |
parent | a95f1353089bdeaccd7c266b40cdd79efedfe632 (diff) | |
download | stable-diffusion-webui-gfx803-f9ac3352cb66ce2bc0aa4325130fc7267fb35e4f.tar.gz stable-diffusion-webui-gfx803-f9ac3352cb66ce2bc0aa4325130fc7267fb35e4f.tar.bz2 stable-diffusion-webui-gfx803-f9ac3352cb66ce2bc0aa4325130fc7267fb35e4f.zip |
change hypernets to use sha256 hashes
Diffstat (limited to 'modules/sd_models.py')
-rw-r--r-- | modules/sd_models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sd_models.py b/modules/sd_models.py index 7babb9ae..8f00191c 100644 --- a/modules/sd_models.py +++ b/modules/sd_models.py @@ -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:
|