Nodes/comfyui-fvmtools/K2 Projector from LoRA
ComfyUI Node

K2 Projector from LoRA

Stop guessing, read the exact twelve values off the file

By ping1979ping·Created 6 months ago·Updated about a month ago· 0
K2 Projector from LoRA
    • projector
    • values
    lora_name
    multiplier1.00
    identity_protection1.00
    enabledtrue

    K2 Projector from LoRA is the precise sibling of K2 Projector in the K2 Lab suite of comfyui-FVMtools. Where the preset node applies an approximated projector vector from the published K2Lab table, this one reads the exact twelve values directly out of a projector LoRA file and turns them into the same K2_PROJECTOR object. Files like fedor_bypass, skc3vo, or z0jglf are exactly this kind of LoRA - usually just one or two tensors - and this node is the accurate way to use them.

    Why it's better than the preset

    The pack's own docs are refreshingly honest here: the preset table is a close-but-not-exact copy, and for skc3vo and z0jglf several of the signs differ from the real LoRA values. A projector vector is a signed layer mix; a wrong sign on one of twelve entries is the difference between a style shift and its mirror image. If you have the file, there is no reason to trust the table. This node gets the truth.

    How it works

    It reads the LoRA and extracts the vector from the txtfusion.projector tensor. Both published formats are supported: a direct …projector.diff tensor and rank-1 …projector.lora_A / …projector.lora_B adapters. So it works regardless of how whoever published the file packed it.

    Inputs:

    • lora_name - the projector LoRA from your models/loras folder.
    • multiplier - signed scale on the extracted vector; the equivalent of LoRA strength for this delta.
    • identity_protection - keeps identity prompt tokens on the unmodified baseline layer mix, so the style shift doesn't deform faces. Keep it at 1.0 for character work.
    • enabled - off passes the model through untouched.

    Outputs: projector (into K2 Compose) and values (the twelve numbers as text, if you want to see or reuse them).

    A side benefit the description calls out: loading it here keeps the rest of the graph free of an extra LoRA loader - the file never gets applied as a normal LoRA, it just donates its vector.

    Install

    Same as the whole pack:

    cd ComfyUI/custom_nodes
    git clone https://github.com/ping1979ping/comfyui-FVMtools
    

    Restart ComfyUI, find it under FVM Tools/K2. No extra dependencies.

    One thing to keep straight: this node expects a projector LoRA, not a regular Krea 2 character/style LoRA. If you point it at a normal LoRA, you'll get a mismatch - use K2 LoRA Info to check a file's namespace first. txtfusion in the namespace is the projector family; diffusion_model/blocks is everything else.

    CategoryFVM Tools/K2

    Inputs (4)

    NameTypeDefaultDescription
    lora_nameCOMBOA projector LoRA (usually only 1-2 tensors).
    multiplierFLOAT1.00-8–8Signed scale on the extracted vector — the equivalent of LoRA strength for this delta.
    identity_protectionFLOAT1.000–1Keeps identity prompt tokens on the unmodified baseline layer mix.
    enabledBOOLEANtrueOff passes the model through untouched.

    Outputs (2)

    NameTypeDescription
    projectorK2_PROJECTOR
    valuesSTRING