π 1825 - Load LoRA From Local Path
Load a LoRA from any absolute path on disk, outside ComfyUI's managed models/loras folder - handy for LoRAs on another drive or in a shared library. The path field is paste-tolerant: surrounding single/double quotes are stripped and mixed back/forward slashes are normalized for your OS, so pasting straight from Windows Explorer's 'Copy as path' just works. A missing file raises a clear error naming the exact path instead of silently failing. Weights are cached in RAM and only re-read when the path changes or the file is overwritten (e.g. after retraining). Files are read into memory with normal buffered I/O (no memory-mapping), so a network-share stall surfaces as a clear, catchable error instead of crashing the backend. CLIP is optional, so the node also works in UNet-only pipelines.
- model
- clip
- MODEL
- CLIP
- resolved_path
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| model | MODEL | Diffusion model to patch with the LoRA. | |
| lora_path | STRING | C:/path/to/your/lora.safetensors | Absolute path to the LoRA file (.safetensors/.pt/.ckpt). Paste straight from Explorer's 'Copy as path' - surrounding quotes are stripped and slashes are normalized automatically. Forward or back slashes both work. The cleaned path is shown on the 'resolved_path' output. |
| strength_model | FLOAT | 1.00-20β20 | How strongly the LoRA modifies the MODEL (UNet). 1.0 = full strength, 0.0 = no effect, negative inverts. If both strengths are 0.0 the file is not loaded at all. |
| strength_clip | FLOAT | 1.00-20β20 | How strongly the LoRA modifies the CLIP text encoder. 1.0 = full strength, 0.0 = no effect, negative inverts. Ignored when no CLIP is connected. |
| clipopt | CLIP | CLIP text encoder to patch. Optional - leave it unconnected for UNet-only pipelines; the clip patch is then skipped and the CLIP output passes through as None. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| MODEL | MODEL | The input MODEL patched with the LoRA (unchanged if both strengths are 0). |
| CLIP | CLIP | The input CLIP patched with the LoRA (passes through unchanged, or None if no CLIP was connected). |
| resolved_path | STRING | The sanitized, OS-normalized path that was actually loaded - wire to a Show Text node to verify the quote/slash cleanup. |