Visit ComfyUI Online for ready-to-use ComfyUI environment
Extend floating-point number list to specified length by filling with single value for uniform batch sizes.
The Batch Float Fill node is designed to extend a list of floating-point numbers to a specified length by filling it with a single value. This node is particularly useful when you need to ensure that a batch of floats meets a certain size requirement, either by appending the value to the end of the list or by prepending it to the beginning. This functionality is essential in scenarios where uniform batch sizes are required for further processing or analysis, ensuring consistency and preventing errors related to batch size discrepancies.
This parameter represents the initial list of floating-point numbers that you want to extend. The list can be of any length, but it must be shorter than the target length specified by the count
parameter. The content of this list will remain unchanged, and the node will only add the specified value to reach the desired length.
This parameter determines where the fill value will be added to the list. It accepts two options: "head" and "tail". If set to "head", the fill value will be prepended to the beginning of the list. If set to "tail", the fill value will be appended to the end of the list. The default value is "tail".
This parameter specifies the floating-point number that will be used to fill the list. This value will be added repeatedly until the list reaches the target length. The default value is 0.0.
This parameter defines the target length of the list after filling. It must be an integer greater than or equal to the length of the initial list. If the initial list is already longer than this value, an error will be raised. The default value is 1.
The output is a list of floating-point numbers that has been extended to the specified length by adding the fill value. The list will either have the fill value appended to the end or prepended to the beginning, depending on the direction
parameter. This ensures that the batch meets the required size for further processing.
count
parameter to the desired batch length and use the value
parameter to specify a neutral or default value that won't affect your calculations.direction
parameter to control where the fill values are added, which can be useful for maintaining the order of elements in your list.{size}
) is less than target count ({count}
)count
parameter.count
parameter is set to a value greater than or equal to the length of the initial list of floats. Adjust the count
parameter accordingly to avoid this error.© Copyright 2024 RunComfy. All Rights Reserved.