mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-16 00:12:33 +08:00
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.
This commit is contained in:
parent
490771b7f4
commit
ce9dfb8b84
2
nodes.py
2
nodes.py
@ -497,7 +497,7 @@ class LoraLoader:
|
|||||||
if self.loaded_lora[0] == lora_path:
|
if self.loaded_lora[0] == lora_path:
|
||||||
lora = self.loaded_lora[1]
|
lora = self.loaded_lora[1]
|
||||||
else:
|
else:
|
||||||
del self.loaded_lora
|
self.loaded_lora = None
|
||||||
|
|
||||||
if lora is None:
|
if lora is None:
|
||||||
lora = comfy.utils.load_torch_file(lora_path, safe_load=True)
|
lora = comfy.utils.load_torch_file(lora_path, safe_load=True)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user