From 782c329ae9ccb982c17d9b7c8f8e923f2568d780 Mon Sep 17 00:00:00 2001 From: lilly Date: Tue, 21 Mar 2023 08:18:19 +0900 Subject: [PATCH] Update LoraLoaderTextRandom.py --- LoraLoaderTextRandom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LoraLoaderTextRandom.py b/LoraLoaderTextRandom.py index 8d16ce6..8528ec2 100644 --- a/LoraLoaderTextRandom.py +++ b/LoraLoaderTextRandom.py @@ -46,7 +46,7 @@ class LoraLoaderTextRandom: lora_path =check_name_pt("loras",name_split_choice(lora_name)) if lora_path is None: print(f"LoraLoaderTextRandom : {lora_name} is none") - return (model_lora, clip_lora) + return (model, clip) print(f"LoraLoaderTextRandom : {lora_path} ") try: model_lora, clip_lora = comfy.sd.load_lora_for_models(model, clip, lora_path, strength_model, strength_clip) @@ -55,7 +55,7 @@ class LoraLoaderTextRandom: print(f"LoraLoaderTextRandom Exception : {e}" ) err_msg = traceback.format_exc() print(err_msg) - return (strength_model, strength_clip) + return (model, clip) #NODE_CLASS_MAPPINGS = { # "LoraLoaderTextRandom": LoraLoaderTextRandom,