The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
empty list if diffusers directory doesn't exist
sALTaccount3d16077e3806
diff --git a/nodes.py b/nodes.pyindex 776bc3819..1af62887d 100644--- a/nodes.py+++ b/nodes.py@@ -223,8 +223,11 @@ class CheckpointLoaderSimple:class DiffusersLoader:@classmethoddef INPUT_TYPES(cls):- return {"required": {"model_path": (os.listdir(os.path.join(folder_paths.models_dir, 'diffusers'), ),),- }}+ paths = []+ search_path = os.path.join(folder_paths.models_dir, 'diffusers')+ if os.path.exists(search_path):+ paths = next(os.walk(search_path))[1]+ return {"required": {"model_path": (paths,), }}RETURN_TYPES = ("MODEL", "CLIP", "VAE")FUNCTION = "load_checkpoint"