String To Float (Soze)
Turn text data into a number your sliders can use
- FLOAT
The same bridge idea as this pack's String To Bool, but for decimal numbers: ComfyUI's STRING and FLOAT types don't connect to each other directly, so anything producing a number as text needs a stop here before it can drive a widget that expects a real FLOAT.
The input and output that matter
- string - the text to convert, default
"0.0".
Output is a single FLOAT.
Where it fits
This is most useful when your parameters are coming from data rather than a hand-set slider - a value read out of a JSON Value Parser, a field off a CSV Reader row, a number embedded in a filename you split apart with String Splitter. Instead of typing CFG scale or LoRA strength values by hand for every run, you drive them from an external source and use this node to make the text usable where a FLOAT input is required.
Picture a spreadsheet of LoRA test configs - one column per parameter, one row per run - loaded through this pack's CSV Reader. Each row hands you text, because CSV cells are text. The strength value for that row needs to reach a LoRA loader's strength_model input as an actual FLOAT, not a string that happens to look like a number, and ComfyUI won't connect the two types directly. This node is the one-line fix that sits right at that seam, so a whole grid of LoRA strength values can be driven from an external file instead of being retyped by hand for every combination.
Recall the general LoRA guidance here too: a strength of 1.0 (a common thing to see as a default in that kind of spreadsheet) is often stronger than you actually want - 0.5 to 0.8 is the more commonly comfortable range, so don't assume every value in your source data is already tuned correctly just because it parses cleanly.
Installing it
ComfyUI Manager: search ComfyUI_Soze. Manual: cd ComfyUI/custom_nodes && git clone https://github.com/SozeInc/ComfyUI_Soze.git, pip install -r ComfyUI_Soze/requirements.txt, restart. No dependencies beyond the pack itself.
Common issues
Keep the source text strictly numeric. If a stray label or unit sneaks into the string ("0.7 strength" instead of just "0.7"), don't assume the node will parse out just the numeric part - check the console the first time you wire up a new source to confirm it's actually feeding clean numbers through. This is a small, mechanical node with nothing else to tune, so almost every issue with it traces back to what's arriving in string, not the conversion itself.
Like its String To Bool and String To Int siblings, this ships as part of the same ComfyUI_Soze install - there's no separate download for any one of the three conversion nodes, so if you're already using one you have the other two available without doing anything further.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| string | STRING | 0.0 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| FLOAT | FLOAT | — |