Use ComfyUI folder locations

This commit is contained in:
Chubbly
2023-08-01 21:13:25 +12:00
committed by GitHub
parent 4b5f62e141
commit ca5e193b7e
+1 -1
View File
@@ -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