Nodes/comfyui-selector/Selector In (FLOAT)
ComfyUI Node

Selector In (FLOAT)

CFG, denoise, strength — one per model family

By exdysa·Created 2 years ago·Updated about a year ago· 6
Selector In (FLOAT)
    • FLOAT
    model_type1
    float11.000
    float21.000
    float31.000
    float41.000
    float51.000
    float61.000
    float71.000
    float81.000

    SelInFloat ("Selector In (FLOAT)") is the numeric workhorse of the comfyui-selector pack. Eight FLOAT input ports, one model_type integer, one FLOAT output - and each port holds a value that only matters when its model family is the one running. It's the node you use when the same number needs to mean different things for different models.

    The canonical example is CFG, and it's a great one because the rules genuinely changed. SDXL fine-tunes still want CFG 4–7. Guidance-distilled models like Flux and Z-Image want CFG 1 - not "a low setting," but literally guidance-off, because it's baked into the weights. If you run both families in one workflow, the "right" CFG depends entirely on what's loaded. SelInFloat is the clean answer: port 1 holds 7, port 3 holds 1, and the model_type signal picks the winner. Same idea for denoise strength, LoRA weights, upscale scale factors, or any other float you retune per model.

    How it works

    Identical to the rest of the Selector In family: model_type (1–8) selects float<number>, and that value flows out. The inputs are lazy - only the selected port is evaluated - though for plain numbers that's mostly academic; you're not loading models here, just choosing which widget's value gets through. All eight ports default to 1.0, and each widget has the same 0–1000 range with 0.001 steps, so there's plenty of headroom for denoise, scale, or any strength you throw at it.

    Inputs & outputs that matter

    • model_type (INT, required) - the selector. Feed it from RecourseCkpt's MODEL_TYPE and the whole thing stays in sync as you swap checkpoints.
    • float1float8 (FLOAT, optional, default 1.0) - your per-model values. Label them with a text note so you remember which family owns which port.
    • FLOAT output - the winning value, wired into a KSampler's cfg, a detailer's denoise, a LoRA's strength, whatever.

    Installing it

    The pack standard. ComfyUI Manager → search comfyui-selector → install → restart, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/exdysa/comfyui-selector
    

    Restart and it's under Selector_Recourse/In. No requirements.txt, no model files, no network access.

    Gotchas

    • Eight ports with no labels is a recipe for "which one was Flux again?" - put a text note on the node or rename ports in your head before you fill them all in.
    • If the selected port has nothing connected, the output is None - the defaults on the widgets only apply when a port is wired. An unwired port does not silently emit 1.0.
    • It's just a number switcher. It won't fix your CFG, it'll just make the right value find the right model. Small single-author pack (GPL-3.0), quiet since early 2025 - fine for what it is, and honestly a cleaner way to manage per-model floats than a wall of Convert nodes.
    CategorySelector_Recourse/In

    Inputs (9)

    NameTypeDefaultDescription
    model_typeINT11–8
    float1optFLOAT1.0000–1000
    float2optFLOAT1.0000–1000
    float3optFLOAT1.0000–1000
    float4optFLOAT1.0000–1000
    float5optFLOAT1.0000–1000
    float6optFLOAT1.0000–1000
    float7optFLOAT1.0000–1000
    float8optFLOAT1.0000–1000

    Outputs (1)

    NameTypeDescription
    FLOATFLOAT