From ca5e193b7e37ea992e140fae7f2e7831e884b2ad Mon Sep 17 00:00:00 2001 From: Chubbly Date: Tue, 1 Aug 2023 21:13:25 +1200 Subject: [PATCH] Use ComfyUI folder locations --- CheckpointLoaderSimpleText.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CheckpointLoaderSimpleText.py b/CheckpointLoaderSimpleText.py index 74c8e4a..6cd3f9b 100644 --- a/CheckpointLoaderSimpleText.py +++ b/CheckpointLoaderSimpleText.py @@ -36,7 +36,7 @@ class CheckpointLoaderSimpleText: def load_checkpoint(self, ckpt_name, output_vae=True, output_clip=True): print(f"[{ccolor}]ckpt_name : [/{ccolor}]", ckpt_name) - ckpt_path=getFullPath(ckpt_name,"checkpoints") + ckpt_path=folder_paths.get_full_path("checkpoints", ckpt_name) try: out = comfy.sd.load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True, embedding_directory=folder_paths.get_folder_paths("embeddings")) return out