aboutsummaryrefslogtreecommitdiff
path: root/modules/hypernetworks
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-11-05 16:16:18 +0300
committerGitHub <noreply@github.com>2022-11-05 16:16:18 +0300
commitcb84a304f03a7ae986dbbca47438a416bdf6b626 (patch)
tree87dedfb47ee3ed5e7a91f7b3fcdbd1b1443d75bd /modules/hypernetworks
parente96c4344952fba680aa0e7d919a8b3b1896fbeb5 (diff)
parent08feb4c364e8b2aed929fd7d22dfa21a93d78b2c (diff)
Merge pull request #4273 from Omegastick/ordered_hypernetworks
Sort hypernetworks list
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 b1f308e2..5ceed6ee 100644
--- a/modules/hypernetworks/hypernetwork.py
+++ b/modules/hypernetworks/hypernetwork.py
@@ -243,7 +243,7 @@ class Hypernetwork:
def list_hypernetworks(path):
res = {}
- for filename in glob.iglob(os.path.join(path, '**/*.pt'), recursive=True):
+ for filename in sorted(glob.iglob(os.path.join(path, '**/*.pt'), recursive=True)):
name = os.path.splitext(os.path.basename(filename))[0]
# Prevent a hypothetical "None.pt" from being listed.
if name != "None":