From ce9dfb8b84706186c7e83508031616550137e5d1 Mon Sep 17 00:00:00 2001 From: ComfyUI-Community <138906221+ComfyUI-Community@users.noreply.github.com> Date: Sat, 15 Jul 2023 15:40:10 -0700 Subject: [PATCH] Path deletion of self.loaded_lora self.loaded_lora is a required attribute of load_lora method when persistent. This returns self.loaded_lora to None when the loaded lora path is not the same as the requested lora path. --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index 32bcf141d..6c69ee6be 100644 --- a/nodes.py +++ b/nodes.py @@ -497,7 +497,7 @@ class LoraLoader: if self.loaded_lora[0] == lora_path: lora = self.loaded_lora[1] else: - del self.loaded_lora + self.loaded_lora = None if lora is None: lora = comfy.utils.load_torch_file(lora_path, safe_load=True)