From d228e713d65221d3d505b2e114e0ee714a6d0d60 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Mon, 26 Feb 2024 11:19:40 +0200 Subject: [PATCH] Add intristic loras --- intrinsic_loras.txt | 4 ++++ nodes.py | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 intrinsic_loras.txt diff --git a/intrinsic_loras.txt b/intrinsic_loras.txt new file mode 100644 index 0000000..62ee933 --- /dev/null +++ b/intrinsic_loras.txt @@ -0,0 +1,4 @@ +source for the loras: +https://github.com/duxiaodan/intrinsic-lora + +Renamed and conveted to .safetensors \ No newline at end of file diff --git a/nodes.py b/nodes.py index 6f86da4..d54a060 100644 --- a/nodes.py +++ b/nodes.py @@ -3663,15 +3663,17 @@ class ImageNormalize_Neg1_To_1: import comfy.sample -from nodes import CLIPTextEncode, VAEEncode, VAEDecode, LoraLoader +from nodes import CLIPTextEncode, LoraLoader +folder_paths.add_model_folder_path("intristic_loras", os.path.join(script_dir, "intristic_loras")) class Intrinsic_lora_sampling: def __init__(self): self.loaded_lora = None + @classmethod def INPUT_TYPES(s): return {"required": { "model": ("MODEL",), - "lora_name": (folder_paths.get_filename_list("loras"), ), + "lora_name": (folder_paths.get_filename_list("intristic_loras"), ), "task": ( [ 'depth map', @@ -3735,7 +3737,6 @@ class Intrinsic_lora_sampling: for start_idx in range(0, samples["samples"].shape[0], per_batch): decoded.append(vae.decode(samples["samples"][start_idx:start_idx+per_batch])) image_out = torch.cat(decoded, dim=0) - #image_out, = VAEDecode.decode(self, vae, samples) pbar.update(1)