aboutsummaryrefslogtreecommitdiff
path: root/modules/hypernetworks
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-04-29 12:45:43 +0300
committerGitHub <noreply@github.com>2023-04-29 12:45:43 +0300
commite6cbfcfe5b42dd8d40ddaf2ecd448b8b0c070565 (patch)
tree6c31ea8ced8590afd4ba019be838bea41885b6cd /modules/hypernetworks
parentc9647c8d23efa8c939c6af39878784e246082122 (diff)
parent2c935d8eb0be10edb226e145a72eb373451cb984 (diff)
Merge branch 'dev' into gradio-theme-support
Diffstat (limited to 'modules/hypernetworks')
-rw-r--r--modules/hypernetworks/hypernetwork.py2
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":