mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 02:15:17 +00:00
search all diffusers paths (oops)
This commit is contained in:
parent
72a8973bd5
commit
f51b7a92c7
7
nodes.py
7
nodes.py
@ -224,9 +224,10 @@ class DiffusersLoader:
|
|||||||
@classmethod
|
@classmethod
|
||||||
def INPUT_TYPES(cls):
|
def INPUT_TYPES(cls):
|
||||||
paths = []
|
paths = []
|
||||||
search_path = folder_paths.get_folder_paths("diffusers")[0]
|
search_paths = folder_paths.get_folder_paths("diffusers")
|
||||||
if os.path.exists(search_path):
|
for search_path in search_paths:
|
||||||
paths = next(os.walk(search_path))[1]
|
if os.path.exists(search_path):
|
||||||
|
paths = next(os.walk(search_path))[1]
|
||||||
return {"required": {"model_path": (paths,), }}
|
return {"required": {"model_path": (paths,), }}
|
||||||
RETURN_TYPES = ("MODEL", "CLIP", "VAE")
|
RETURN_TYPES = ("MODEL", "CLIP", "VAE")
|
||||||
FUNCTION = "load_checkpoint"
|
FUNCTION = "load_checkpoint"
|
||||||
|
Loading…
Reference in New Issue
Block a user