Nodes/ComfyUI_to_webui/🔢Float Input (Hua)
ComfyUI Node

🔢Float Input (Hua)

A float input that becomes a slider in your packaged webui

By kungful·Created 2 years ago·Updated 8 months ago· 25
🔢Float Input (Hua)
    • FLOAT
    float_value0.00
    nameFloatInput

    HuaFloatNode (🔢Float Input (Hua)) is the node that turns "let the user tweak the denoise strength" into an actual number field in your Gradio frontend. It's a value source, not an operator: give it a float, get the same float back, and the pack's webui renders one input box per instance - labeled with the name you set. When someone changes it in the UI, the frontend writes the new value back into this node before the run.

    Mechanically it's the trivial-est node in the pack: float_value in, FLOAT out, nothing else happens. The range is comically wide - −9999999999 to 9999999999, step 0.01 - which is less "we support extreme values" and more "the author didn't want to constrain you." Practically, the range matters little; what matters is which value the frontend sets.

    Inputs:

    • float_value - the float itself, default 0.0.
    • name - the label the webui shows above the field. This is the input you'll actually care about, because it's how your user knows which number they're changing.

    Output: FLOAT. Typical wiring: CFG/guidance strength, denoise amount for a second-pass sampler, LoRA strength, ControlNet influence - anything that takes a float you'd otherwise hard-code into a Primitive node.

    Install: ComfyUI Manager → "ComfyUI_to_webui", or

    cd ComfyUI/custom_nodes
    git clone https://github.com/kungful/ComfyUI_to_webui.git
    

    then restart. No models, no downloads.

    The dynamic-component detail: these (like GradioTextOk and the LoRA dropdowns) are capped by the pack's max_dynamic_components setting, 5 by default, configurable in the webui's settings tab. If you place more float nodes than the cap, the extras won't get their own field. And a design note worth knowing before you get fancy: the frontend matches these nodes by their exact class name, so a stock Float Primitive won't get a field - the point of this node is precisely the class-name hook. If you're not using the webui at all, a Primitive set to FLOAT does the same job with one less dependency. If you are, this is how you let your users touch the knobs without touching the graph.

    Category❤️ 靓仔 ✨

    Inputs (2)

    NameTypeDefaultDescription
    float_valueFLOAT0.00-9999999999–9999999999输入一个浮点数
    nameSTRINGFloatInput节点名称

    Outputs (1)

    NameTypeDescription
    FLOATFLOAT