ComfyUI node pack · v0.0.10 · free and open source

Mix your LoRAs.
Keep every look.

Stack seven LoRAs and the picture turns to mud. KiLoRA routes them, so each one leads where it is strong.

kilora-promo.mp4

7 LoRAs. Same seed.

Each LoRA at 0.7. On the left, the stock LoRA loader. On the right, KiLoRA.

Plain stackPlain stack of seven LoRAs: a beige texture with a coral blob, no pictureOvercooked!
KiLoRAKiLoRA with the same seven LoRAs: a coral-haired girl with a red paper umbrella on a stone bridge under cherry blossoms

Two painters, one picture.

Monet + Van Gogh, 0.7 each. The stack gets muddy; KiLoRA keeps both.

Plain stackHarbor at sunset, plain stack: muddy, over-textured strokes
KiLoRAHarbor at sunset with KiLoRA: clean brushwork from both painters
Plain stackGirl in a red coat walking a dog, plain stack
KiLoRAGirl in a red coat walking a dog, KiLoRA
ComfyUI
KiLoRA Add LoRA (style)

LoRA filemonet.safetensors

strength0.70

KiLoRA Add LoRA (style 2)

LoRA filevan-gogh.safetensors

strength0.70

KiLoRA Apply Mod List

depth3

routingtoken · sparsemax

KSampler

seed811

steps30

One node chain. Put it where your LoRA loader was.

Each LoRA in its own place.

Same seed, same two LoRAs at 0.7: our mascot and a Van Gogh style. Left: a plain LoRA stack with one prompt, no KiLoRA. Right: KiLoRA with a SAM2 mask from a first render. The mascot LoRA and its prompt act inside the mask, the Van Gogh LoRA and its prompt on the background, in one model call.

Plain stackPlain stack of the mascot and Van Gogh LoRAs: swirl texture over the whole image, the face included
KiLoRA + SAM2 maskKiLoRA with a SAM2 mask: the mascot stays clean in a Van Gogh starry night over a wheat field
ComfyUI
SAM2 mask

fromfirst render

KiLoRA Layer

layerip · mascot

maskSAM2

KiLoRA Layer

layercreative · Van Gogh

KiLoRA Layer

composesingle

Any segmenter works: connect its MASK to KiLoRA Layer.

Make your own looks.

Solve a LoRA from a few prompts

Write a style and a few subject lines. KiLoRA Solve LoRA From Prompts writes a plain LoRA file in about three minutes on a 16 GB GPU. No training images.

BaseBase model: a red fox in sunflowers
Solved LoRAWith the Van Gogh LoRA solved from prompts: swirling painted fox and sunflowers

Learn a style from a few images

KiLoRA Solve LoRA From Images learns what images share. Here: four public-domain Monet paintings, then a new subject.

BaseBase model: a cat asleep on a windowsill
Monet LoRAWith the Monet LoRA learned from four paintings: soft impressionist light

It learns from the images you keep

Put KiLoRA Live: 1. Record before the sampler and 2. Write after it. Each image you keep nudges the mix. Undo any write.

FirstLive round 1: a village street with flower boxes
Live round 2Write ✓
Live round 3Write ✓
Live round 4Write ✓

Save your mix. Pack it. Share it.

Export the session as a .kmod, bundle it with KiLoRA Pack, and load it anywhere with KiLoRA Load Mod.

Pack
village-look.kpack · 1 mod · 0.70

One lighthouse, seven ways.

Same prompt (Monet and Van Gogh named in it), same seed. Plain stack = ComfyUI's LoRA loader, no KiLoRA. A .kmod stores both LoRAs at 0.7 and is loaded at 1.0.

No LoRANo LoRA, prompt only
Plain stack 0.7Plain stack without KiLoRA, Monet and Van Gogh at 0.7 each
KiLoRA 0.7KiLoRA routing, Monet and Van Gogh at 0.7 each
.kmod, no editsThe two LoRAs saved as a .kmod without live edits, loaded at 1.0
Plain stack 1.0Plain stack without KiLoRA, Monet and Van Gogh at 1.0 each
KiLoRA 1.0KiLoRA routing, Monet and Van Gogh at 1.0 each
.kmod, 8 live editsThe .kmod after 8 live edits on other prompts, loaded at 1.0

Go deeper.

KiLoRA can run your LoRAs through several passes. Monet and Van Gogh at 0.7, same seed, same harbor: the layout holds while the painting deepens. Times are per image, 1024 px, 20 steps.

Depth 2Harbor at depth 2, 22 s per image22 s
Depth 3Harbor at depth 3, 30 s per image30 s
Depth 5Harbor at depth 5, 46 s per image46 s
Depth 7Harbor at depth 7, 62 s per image62 s

Spend depth where it matters.

With KiLoRA Depth Map, a mask gives the subject depth 5 and the background depth 1.

MaskMask around the girl
Depth map resultSeven-LoRA scene with depth 5 on the girl and depth 1 on the background
kilora-go-deeper.mp4

Install

Terminal
  1. Clone into ComfyUI/custom_nodes/:

    git clone https://github.com/harnessix/kilora ComfyUI/custom_nodes/kilora
  2. Install the requirements and restart ComfyUI:

    pip install -r ComfyUI/custom_nodes/kilora/requirements.txt
  3. Plain LoRA files stay in ComfyUI/models/loras/. Mods (.kmod.safetensors) go into ComfyUI/models/kilora/.

  4. Use KiLoRA LoRA Loader in place of the LoRA loader, and generate as usual.