fix glob path in hypernetwork.py

This commit is contained in:
ddPn08 2022-10-07 23:02:07 +09:00 committed by AUTOMATIC1111
parent 7001bffe02
commit 772db721a5

View File

@ -43,7 +43,7 @@ class Hypernetwork:
def load_hypernetworks(path):
res = {}
for filename in glob.iglob(path + '**/*.pt', recursive=True):
for filename in glob.iglob(os.path.join(path, '**/*.pt'), recursive=True):
try:
hn = Hypernetwork(filename)
res[hn.name] = hn