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

Add an experimental LoraSave node to extract model loras.

The model_diff input should be connected to the output of a
ModelMergeSubtract node.
This commit is contained in:
comfyanonymous
2024-09-04 16:38:38 -04:00
parent f04229b84d
commit 22d1241a50
3 changed files with 93 additions and 0 deletions

View File

@@ -247,6 +247,7 @@ if __name__ == "__main__":
folder_paths.add_model_folder_path("clip", os.path.join(folder_paths.get_output_directory(), "clip"))
folder_paths.add_model_folder_path("vae", os.path.join(folder_paths.get_output_directory(), "vae"))
folder_paths.add_model_folder_path("diffusion_models", os.path.join(folder_paths.get_output_directory(), "diffusion_models"))
folder_paths.add_model_folder_path("loras", os.path.join(folder_paths.get_output_directory(), "loras"))
if args.input_directory:
input_dir = os.path.abspath(args.input_directory)