1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 15:04:50 +08:00

Add support for loading extra paths from yaml file.

Rename extra_model_paths.yaml.example to extra_model_paths.yaml and edit
it to point to your other UI.
This commit is contained in:
comfyanonymous
2023-03-18 02:52:43 -04:00
parent 8bad32258e
commit 51d6427ddf
3 changed files with 57 additions and 1 deletions

View File

@@ -28,8 +28,10 @@ folder_names_and_paths["controlnet"] = ([os.path.join(models_dir, "controlnet"),
folder_names_and_paths["upscale_models"] = ([os.path.join(models_dir, "upscale_models")], supported_pt_extensions)
def add_model_folder(folder_name, full_folder_path):
def add_model_folder_path(folder_name, full_folder_path):
global folder_names_and_paths
if folder_name in folder_names_and_paths:
folder_names_and_paths[folder_name][0].append(full_folder_path)
def recursive_search(directory):