Visit ComfyUI Online for ready-to-use ComfyUI environment
Transform numerical values between ranges for normalization and scaling in creative projects.
The NumberScaler node is designed to transform a given numerical value from one range to another. This is particularly useful in scenarios where you need to normalize or scale values to fit within a specific range, such as adjusting the intensity of effects or parameters in your AI art projects. By providing a flexible and intuitive way to map values from an original range to a target range, the NumberScaler helps ensure that your inputs are appropriately scaled, leading to more consistent and predictable results in your creative workflows.
This parameter defines the minimum value of the original range from which the input value will be scaled. It sets the lower bound of the input range. The default value is 1.0, with a minimum of 0.0 and a maximum of 18,446,744,073,709,551,615 (0xFFFFFFFFFFFFFFFF). Adjusting this value will change the starting point of the input range.
This parameter specifies the maximum value of the original range from which the input value will be scaled. It sets the upper bound of the input range. The default value is 10.0, with a minimum of 0.0 and a maximum of 18,446,744,073,709,551,615 (0xFFFFFFFFFFFFFFFF). Adjusting this value will change the endpoint of the input range.
This parameter defines the minimum value of the target range to which the input value will be scaled. It sets the lower bound of the output range. The default value is 0.0, with a minimum of 0.0 and a maximum of 18,446,744,073,709,551,615 (0xFFFFFFFFFFFFFFFF). Adjusting this value will change the starting point of the output range.
This parameter specifies the maximum value of the target range to which the input value will be scaled. It sets the upper bound of the output range. The default value is 1.0, with a minimum of 0.0 and a maximum of 18,446,744,073,709,551,615 (0xFFFFFFFFFFFFFFFF). Adjusting this value will change the endpoint of the output range.
This parameter is the numerical value that you want to scale from the original range to the target range. The default value is 0.0, with a minimum of 0.0 and a maximum of 18,446,744,073,709,551,615 (0xFFFFFFFFFFFFFFFF). This is the value that will be transformed based on the specified ranges.
The output is a single floating-point number that represents the scaled value. This value is the result of mapping the input value
from the original range defined by min
and max
to the target range defined by scale_to_min
and scale_to_max
. This scaled value can then be used in subsequent nodes or processes within your AI art project.
min
and max
values accurately represent the range of your input data to achieve correct scaling.scale_to_min
and scale_to_max
to adjust the output range to fit the requirements of your specific application or effect.value
inputs to understand how changes in the input range affect the scaled output.min
and max
values are set to the same number, resulting in a division by zero during scaling.min
and max
are set to different values to define a valid range.value
is outside the range defined by min
and max
.value
falls within the specified min
and max
range to ensure proper scaling.scale_to_min
and scale_to_max
are set to the same number, leading to an invalid target range.scale_to_min
and scale_to_max
are set to different values to define a valid target range.© Copyright 2024 RunComfy. All Rights Reserved.