mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-21 13:50:12 +08:00
fix glob path in hypernetwork.py
This commit is contained in:
parent
7001bffe02
commit
772db721a5
@ -43,7 +43,7 @@ class Hypernetwork:
|
|||||||
def load_hypernetworks(path):
|
def load_hypernetworks(path):
|
||||||
res = {}
|
res = {}
|
||||||
|
|
||||||
for filename in glob.iglob(path + '**/*.pt', recursive=True):
|
for filename in glob.iglob(os.path.join(path, '**/*.pt'), recursive=True):
|
||||||
try:
|
try:
|
||||||
hn = Hypernetwork(filename)
|
hn = Hypernetwork(filename)
|
||||||
res[hn.name] = hn
|
res[hn.name] = hn
|
||||||
|
Loading…
Reference in New Issue
Block a user