mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-22 13:42:12 -03:00
lora_stack stores relative paths (e.g., 'Illustrious/style/file.safetensors'), but comfy.utils.load_torch_file requires absolute paths. Previously, when loading LoRAs from lora_stack, the relative path was passed directly to the low-level API, causing FileNotFoundError on Windows. This fix extracts the lora name from the relative path and uses get_lora_info_absolute() to resolve the full absolute path before passing it to load_torch_file(). This maintains compatibility with the lora_stack format while ensuring correct file loading across all platforms. Fixes: FileNotFoundError for relative paths in LoraLoaderLM and LoraTextLoaderLM when processing lora_stack input.