From 8258e0568817ef7ea4eb256d9c8377ddbcf66fe5 Mon Sep 17 00:00:00 2001 From: lrzjason Date: Thu, 11 Dec 2025 19:25:04 +0800 Subject: [PATCH] update --- nodes.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nodes.py b/nodes.py index 64ebda8..6dbd109 100644 --- a/nodes.py +++ b/nodes.py @@ -341,8 +341,8 @@ class UNETLoader_Any: elif weight_dtype == "fp8_e5m2": model_options["dtype"] = torch.float8_e5m2 - unet_path = folder_paths.get_full_path_or_raise("unet", unet_name) - model = comfy.sd.load_unet(unet_path, model_options=model_options, embedding_directory=folder_paths.get_folder_paths("embeddings")) + unet_path = folder_paths.get_full_path_or_raise("diffusion_models", unet_name) + model = comfy.sd.load_diffusion_model(unet_path, model_options=model_options) return (model,) class CLIPLoader_Any: diff --git a/pyproject.toml b/pyproject.toml index 31e56ea..b6f3375 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "loaderutils" description = "" -version = "1.0.1" +version = "1.0.2" license = {file = "LICENSE"} [project.urls]