Sigmas To Float(SigmasToFloat)
From a technical implementation perspective, this node receives an input tensor of type SIGMAS
Sigmas To Float
The Sigmas To Float node, from a technical implementation perspective, receives an input tensor of type SIGMAS.
The Sigmas To Float node is a utility tool for data format conversion. Its core function is to convert the SIGMAS tensor data, which represents noise scheduling information in ComfyUI, into a simple list of floating-point numbers. This conversion process allows the originally complex data passed between specific nodes to be used by more nodes that require ordinary numerical inputs.
Node Function
From a technical implementation perspective, this node receives an input tensor of type SIGMAS. SIGMAS is a specialized data structure used in ComfyUI within diffusion models (such as Stable Diffusion) to control the step size and intensity of the denoising process, typically generated by KSampler or scheduler nodes. By calling the .tolist() method, this node unpacks this internal tensor structure and converts it into a standard Python list of floating-point numbers, thereby outputting it as type FLOAT.
Node Parameter Description - Sigmas To Float
Inputs
| Parameter Name | Data Type | Required | Default Value | Range/Options | Description |
|---|---|---|---|---|---|
sigmas | SIGMAS | Yes | - | - | Input parameter sigmas: Receives SIGMAS data from a scheduler or sampler as the source data for conversion. This parameter has no specific value range restrictions. |
Output
| Parameter Name | Data Type | Description |
|---|---|---|
| float | FLOAT | Output parameter float: Outputs the converted list of floating-point numbers, which can be used by other nodes requiring ordinary numerical input. |
Usage Scenarios
In practical workflows, this node is very useful when you need to use the noise scheduling information generated by a diffusion model in other custom scripts or nodes that require a list of numerical values. For example, in an advanced image generation pipeline, you can first generate a set of sigmas using a KSampler node, then convert them into a list of floating-point numbers via this node, and finally input them into a custom intensity control node to adjust the noise strength of an animation frame by frame.
Sigmas To Float Node Source Code Link
Sigmas To Float node is from the ComfyUI-KJNodes node package.
Comments
Sign in with GitHub to join the discussion.