Extensions/comfyui-power-lora-plus
ComfyUI Extension

comfyui-power-lora-plus

A LoRA stacker for ComfyUI with on-node editor, sync capability between loaders, and folder-grouped search picker.

By quzopl·Created 2 months ago·Updated 2 months ago· 0
quzopl/comfyui-power-lora-plus
Nodes
On cloudLocal install
Stars0
Updated2 months ago
Readme

ComfyUI — Power Lora Plus

A LoRA stacker for ComfyUI (in the spirit of rgthree's Power Lora Loader) with one extra trick: a lora_config output and input so a second loader can be synchronized to the first — edit one, the other mirrors it live and applies the same LoRAs.

Features

  • On-node row editor — add/remove LoRA rows, per-row enable toggle, a folder-grouped search picker (click the LoRA field → type to filter, organized by subfolder like rgthree), and a strength field.
  • Single ↔ Separate strengths — one strength (model = clip) or two, toggled per node. In a row, the left number is the model strength and the right number is the clip strength (the right box shows only in Separate mode).
  • Sync two loaders — wire one node's lora_config output into another's lora_config input:
    • the follower's UI live-mirrors the master as you edit (read-only, greyed, "driven by input #id"),
    • at generation the follower applies the master's config, so both stacks are guaranteed identical.
  • Chainable — the lora_config output always reflects whatever was applied (input wins over local rows), so you can pass it down a chain.

I/O

  • Inputs (all optional): model (MODEL), clip (CLIP), lora_config (STRING — wire from another node's lora_config output).
  • Outputs: MODEL, CLIP, lora_config (STRING/JSON).

The row data lives in a hidden loras_data JSON widget that serializes with the workflow.

Config format

{
  "mode": "separate",
  "loras": [
    { "on": true,  "lora": "ideogram/realism.safetensors", "strength": 0.8, "strengthTwo": 0.6 },
    { "on": false, "lora": "detail.safetensors",            "strength": 1.0, "strengthTwo": null }
  ]
}

strengthTwo is the separate clip strength; null ⇒ clip uses strength. Names are matched against your loras/ folder (exact, case-insensitive, then basename), so a bare filename still resolves to a file in a subfolder.

Sync — how to use

  1. Add two Power Lora Plus nodes.
  2. Drag the first node's lora_config output to the second node's lora_config input.
  3. Edit LoRAs on the first (master). The second (follower) mirrors it and locks editing. Feed each node its own model/clip — both get the same LoRAs.

Disconnect the input and the follower returns to its own saved rows.

Install

Clone into ComfyUI/custom_nodes/ and restart ComfyUI:

git clone https://github.com/quzopl/comfyui-power-lora-plus.git

Development

python -m pytest tests/ -v

License

MIT