mirror of
https://github.com/vladmandic/automatic
synced 2026-09-13 01:59:42 +02:00
fix folder enum and refactor control ipadapter
This commit is contained in:
@@ -284,7 +284,7 @@ class Hypernetwork:
|
||||
def list_hypernetworks(path):
|
||||
res = {}
|
||||
def list_folder(folder):
|
||||
for filename in shared.listdir(folder):
|
||||
for filename in os.listdir(folder):
|
||||
fn = os.path.join(folder, filename)
|
||||
if os.path.isfile(fn) and fn.lower().endswith(".pt"):
|
||||
name = os.path.splitext(os.path.basename(fn))[0]
|
||||
|
||||
Reference in New Issue
Block a user