Unverified Commit a8f3bbc3 authored by ComfyUI-Community's avatar ComfyUI-Community Committed by GitHub
Browse files

Patch del self.loaded_lora to prevent error with persistent lora_name swapping

parent 490771b7
......@@ -497,7 +497,9 @@ class LoraLoader:
if self.loaded_lora[0] == lora_path:
lora = self.loaded_lora[1]
else:
del self.loaded_lora
temp = self.loaded_lora
self.loaded_lora = None
del temp
if lora is None:
lora = comfy.utils.load_torch_file(lora_path, safe_load=True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment