ComfyUI > Nodes > Basic data handling > create DICT from FLOATs

ComfyUI Node: create DICT from FLOATs

Class Name

Basic data handling: DictCreateFromFloat

Category
Basic/DICT
Author
StableLlama (Account age: 861days)
Extension
Basic data handling
Latest Updated
2026-05-07
Github Stars
0.04K

How to Install Basic data handling

Install this extension via the ComfyUI Manager by searching for Basic data handling
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Basic data handling 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

create DICT from FLOATs Description

DictCreateFromFloat node creates dictionaries from dynamic key-float pairs for efficient data management.

create DICT from FLOATs:

The DictCreateFromFloat node is designed to facilitate the creation of a dictionary where each key is associated with a floating-point number. This node is particularly useful when you need to dynamically generate a dictionary from a series of key-value pairs, where the values are floats. By leveraging this node, you can efficiently organize and manage data that involves numerical values, making it easier to handle complex data structures in your AI art projects. The node's primary function is to take dynamic inputs and construct a dictionary, which can then be used for further processing or analysis. This capability is essential for tasks that require precise numerical data handling, offering a streamlined approach to creating structured data from floating-point numbers.

create DICT from FLOATs Input Parameters:

key_0, key_1, key_2, ...

These parameters represent the keys in the dictionary you are creating. Each key is a string that uniquely identifies a value in the dictionary. The keys are dynamically named as key_0, key_1, key_2, and so on, depending on the number of key-value pairs you wish to include. There is no explicit minimum or maximum value for these keys, but they should be unique within the dictionary to avoid overwriting values.

value_0, value_1, value_2, ...

These parameters are the floating-point numbers associated with each key in the dictionary. Each value corresponds to a key, and they are dynamically named as value_0, value_1, value_2, etc. The values must be valid floating-point numbers, and there is no specified range, allowing for flexibility in the numerical data you wish to include. The node will convert these inputs into floats if they are not already in that format.

create DICT from FLOATs Output Parameters:

DICT

The output of this node is a dictionary (DICT) that contains the key-value pairs you have specified. Each key in the dictionary is associated with a floating-point number, providing a structured way to store and access numerical data. This output is crucial for tasks that require organized data management, allowing you to easily retrieve and manipulate the values associated with each key.

create DICT from FLOATs Usage Tips:

  • Ensure that each key is unique to prevent overwriting values in the dictionary.
  • Use descriptive key names to make it easier to understand and manage the data within the dictionary.
  • Verify that all values are valid floating-point numbers to avoid conversion errors.

create DICT from FLOATs Common Errors and Solutions:

KeyError: 'key_X'

  • Explanation: This error occurs when a specified key is not found in the input parameters.
  • Solution: Double-check the input parameters to ensure that all keys are correctly named and match the expected format.

ValueError: could not convert string to float

  • Explanation: This error happens when a value cannot be converted to a float.
  • Solution: Ensure that all values are valid floating-point numbers or can be converted to floats. Check for any non-numeric characters in the input values.

create DICT from FLOATs Related Nodes

Go back to the extension to check out more related nodes.
Basic data handling
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

create DICT from FLOATs