Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
cb84a304
Unverified
Commit
cb84a304
authored
Nov 05, 2022
by
AUTOMATIC1111
Committed by
GitHub
Nov 05, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4273 from Omegastick/ordered_hypernetworks
Sort hypernetworks list
parents
e96c4344
08feb4c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
hypernetwork.py
modules/hypernetworks/hypernetwork.py
+1
-1
No files found.
modules/hypernetworks/hypernetwork.py
View file @
cb84a304
...
@@ -243,7 +243,7 @@ class Hypernetwork:
...
@@ -243,7 +243,7 @@ class Hypernetwork:
def
list_hypernetworks
(
path
):
def
list_hypernetworks
(
path
):
res
=
{}
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
]
name
=
os
.
path
.
splitext
(
os
.
path
.
basename
(
filename
))[
0
]
# Prevent a hypothetical "None.pt" from being listed.
# Prevent a hypothetical "None.pt" from being listed.
if
name
!=
"None"
:
if
name
!=
"None"
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment