diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-03-28 17:03:57 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-03-28 17:03:57 +0000 |
commit | 1b63afbedc7789c0eb9a4742b780ab304d7a9caf (patch) | |
tree | 517e6dffba6ae1ec91b4187b3dee2f0b005f75f7 /modules/hypernetworks/hypernetwork.py | |
parent | 8c69bd08c58a3bc86a1891e9a44693001ecae6b8 (diff) | |
download | stable-diffusion-webui-gfx803-1b63afbedc7789c0eb9a4742b780ab304d7a9caf.tar.gz stable-diffusion-webui-gfx803-1b63afbedc7789c0eb9a4742b780ab304d7a9caf.tar.bz2 stable-diffusion-webui-gfx803-1b63afbedc7789c0eb9a4742b780ab304d7a9caf.zip |
sort hypernetworks and checkpoints by name
Diffstat (limited to 'modules/hypernetworks/hypernetwork.py')
-rw-r--r-- | modules/hypernetworks/hypernetwork.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/hypernetworks/hypernetwork.py b/modules/hypernetworks/hypernetwork.py index f6ef42d5..1fc49537 100644 --- a/modules/hypernetworks/hypernetwork.py +++ b/modules/hypernetworks/hypernetwork.py @@ -312,7 +312,7 @@ class Hypernetwork: def list_hypernetworks(path):
res = {}
- for filename in sorted(glob.iglob(os.path.join(path, '**/*.pt'), recursive=True)):
+ for filename in sorted(glob.iglob(os.path.join(path, '**/*.pt'), recursive=True), key=str.lower):
name = os.path.splitext(os.path.basename(filename))[0]
# Prevent a hypothetical "None.pt" from being listed.
if name != "None":
|