ComfyUI > Nodes > Basic data handling > create SET

ComfyUI Node: create SET

Class Name

Basic data handling: SetCreate

Category
Basic/SET
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 SET Description

SetCreate node creates a set from items, eliminating duplicates and adapting to input variety.

create SET:

The Basic data handling: SetCreate node is designed to facilitate the creation of a set from a collection of items. This node is particularly useful when you need to manage unique elements, as sets inherently eliminate duplicate values. By dynamically extending the list of items based on the number of inputs provided, this node offers flexibility and adaptability in handling various data types. The primary goal of this node is to streamline the process of set creation, making it accessible and efficient for users who may not have a technical background. It simplifies the task of aggregating distinct elements into a single set, which can be beneficial in scenarios where uniqueness is a priority, such as filtering out duplicate entries or preparing data for further processing.

create SET Input Parameters:

item_0

The item_0 parameter is the initial input for creating the set and can accept any data type. This parameter is part of a dynamic input system, meaning you can add multiple items to be included in the set. The function of this parameter is to provide the first element of the set, and it impacts the node's execution by determining the initial content of the set. There are no strict minimum or maximum values, as the parameter is designed to be flexible and accommodate various data types. The default value is not specified, allowing you to input any desired value to start building the set.

create SET Output Parameters:

SET

The output parameter SET represents the set created from the provided input items. This output is crucial as it contains all the unique elements derived from the input parameters, effectively removing any duplicates. The interpretation of this output is straightforward: it is a collection of distinct items that you have inputted, which can be used for further operations or analysis. The importance of this output lies in its ability to simplify data handling by ensuring that only unique elements are retained, making it easier to manage and process data without redundancy.

create SET Usage Tips:

  • To maximize the utility of the SetCreate node, consider using it when you need to ensure that your data contains only unique elements. This can be particularly useful in data cleaning processes or when preparing data for operations that require distinct values.
  • Experiment with different data types as inputs to see how the node handles them. This can help you understand the flexibility of the node and how it can be applied to various scenarios in your projects.

create SET Common Errors and Solutions:

TypeError: unhashable type

  • Explanation: This error occurs when you try to add a mutable data type, such as a list or dictionary, to the set. Sets require elements to be hashable, which means they must be immutable.
  • Solution: Ensure that all items you input into the SetCreate node are immutable types, such as integers, floats, strings, or tuples.

ValueError: too many values to unpack

  • Explanation: This error might occur if the node is expecting a certain number of inputs but receives more than it can handle.
  • Solution: Check the number of inputs you are providing and ensure they match the expected dynamic input configuration. Adjust the inputs accordingly to prevent this error.

create SET 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.