From be903eb2e2921f03a3a03dc9d6b0c6437ae201f5 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Tue, 10 Oct 2023 01:25:47 -0400 Subject: [PATCH] Add default CheckpointSave, CLIPSave and VAESave paths to model paths. --- main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.py b/main.py index 875ea1aa..1100a07f 100644 --- a/main.py +++ b/main.py @@ -175,6 +175,11 @@ if __name__ == "__main__": print(f"Setting output directory to: {output_dir}") folder_paths.set_output_directory(output_dir) + #These are the default folders that checkpoints, clip and vae models will be saved to when using CheckpointSave, etc.. nodes + folder_paths.add_model_folder_path("checkpoints", os.path.join(folder_paths.get_output_directory(), "checkpoints")) + 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")) + if args.input_directory: input_dir = os.path.abspath(args.input_directory) print(f"Setting input directory to: {input_dir}")