The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
allow configurable path for diffusers models
sALTaccount72a8973bd56b
diff --git a/folder_paths.py b/folder_paths.pyindex f13e4895f..ab3359347 100644--- a/folder_paths.py+++ b/folder_paths.py@@ -23,6 +23,7 @@ folder_names_and_paths["clip"] = ([os.path.join(models_dir, "clip")], supported_folder_names_and_paths["clip_vision"] = ([os.path.join(models_dir, "clip_vision")], supported_pt_extensions)folder_names_and_paths["style_models"] = ([os.path.join(models_dir, "style_models")], supported_pt_extensions)folder_names_and_paths["embeddings"] = ([os.path.join(models_dir, "embeddings")], supported_pt_extensions)+folder_names_and_paths["diffusers"] = ([os.path.join(models_dir, "diffusers")], ["folder"])folder_names_and_paths["controlnet"] = ([os.path.join(models_dir, "controlnet"), os.path.join(models_dir, "t2i_adapter")], supported_pt_extensions)folder_names_and_paths["upscale_models"] = ([os.path.join(models_dir, "upscale_models")], supported_pt_extensions)diff --git a/nodes.py b/nodes.pyindex 8271da04c..934b458f2 100644--- a/nodes.py+++ b/nodes.py@@ -224,7 +224,7 @@ class DiffusersLoader:@classmethoddef INPUT_TYPES(cls):paths = []- search_path = os.path.join(folder_paths.models_dir, 'diffusers')+ search_path = folder_paths.get_folder_paths("diffusers")[0]if os.path.exists(search_path):paths = next(os.walk(search_path))[1]return {"required": {"model_path": (paths,), }}