ComfyUI > Nodes > ComfyUI Inspire Pack > Float Range (Inspire)

ComfyUI Node: Float Range (Inspire)

Class Name

FloatRange __Inspire

Category
InspirePack/Util
Author
Dr.Lt.Data (Account age: 471days)
Extension
ComfyUI Inspire Pack
Latest Updated
2024-07-02
Github Stars
0.3K

How to Install ComfyUI Inspire Pack

Install this extension via the ComfyUI Manager by searching for ComfyUI Inspire Pack
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Inspire Pack in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Float Range (Inspire) Description

Generate floating-point number sequences within specified range for smooth transitions in AI art projects, with control over increments and limits.

Float Range (Inspire):

The FloatRange __Inspire node is designed to generate a sequence of floating-point numbers within a specified range. This node is particularly useful for creating smooth transitions or gradients in your AI art projects, allowing you to define a start and stop value, and control the increment between each number in the sequence. The node ensures flexibility by allowing you to set a limit on the number of values generated and decide whether the sequence should include the exact stop value. This functionality is essential for tasks that require precise control over numerical ranges, such as parameter sweeps, animations, or procedural content generation.

Float Range (Inspire) Input Parameters:

start

The start parameter defines the beginning value of the floating-point sequence. It sets the initial point from which the sequence will commence. The minimum value for this parameter is -100.0, the maximum is 100.0, and the default value is 0.0. Adjusting this value will shift the entire range of generated numbers.

stop

The stop parameter specifies the end value of the floating-point sequence. It determines the upper limit of the range. The minimum value for this parameter is -100.0, the maximum is 100.0, and the default value is 1.0. This value is crucial for defining the endpoint of your sequence.

step

The step parameter controls the increment between each number in the sequence. It defines how much each subsequent number will increase from the previous one. The minimum value for this parameter is 0.0, the maximum is 100.0, and the default value is 0.01. A smaller step value results in a finer granularity of the sequence.

limit

The limit parameter sets the maximum number of values that can be generated in the sequence. It ensures that the sequence does not exceed a specified length. The minimum value for this parameter is 2, the maximum is 4096, and the default value is 100. This parameter is useful for controlling the size of the output list.

ensure_end

The ensure_end parameter is a boolean that determines whether the exact stop value should be included in the sequence. If enabled, the sequence will always include the stop value, even if it means adjusting the last step. The default value is True, with options to enable or disable this feature. This parameter is important for ensuring the completeness of the range.

Float Range (Inspire) Output Parameters:

FLOAT

The output of the FloatRange __Inspire node is a list of floating-point numbers. This list represents the sequence generated based on the input parameters. The output is crucial for any application requiring a defined range of numbers, such as creating gradients, animating transitions, or performing parameter sweeps in AI art projects.

Float Range (Inspire) Usage Tips:

  • To create a smooth gradient, set a small step value to ensure fine transitions between numbers.
  • Use the limit parameter to control the length of the sequence, especially when working with large ranges to avoid excessive data generation.
  • Enable the ensure_end parameter if it is critical for your sequence to include the exact stop value, ensuring the range is complete.

Float Range (Inspire) Common Errors and Solutions:

"Start value must be less than stop value"

  • Explanation: This error occurs when the start value is greater than or equal to the stop value.
  • Solution: Ensure that the start value is less than the stop value to generate a valid sequence.

"Step value cannot be zero"

  • Explanation: This error occurs when the step value is set to zero, which would result in an infinite loop.
  • Solution: Set the step value to a non-zero number to define a valid increment for the sequence.

"Limit must be at least 2"

  • Explanation: This error occurs when the limit value is set to less than 2, which is insufficient to generate a meaningful sequence.
  • Solution: Increase the limit value to at least 2 to ensure a valid sequence length.

Float Range (Inspire) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Inspire Pack
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.