ComfyUI > Nodes > ComfyUI_Lam > 通用名称选择器

ComfyUI Node: 通用名称选择器

Class Name

LamCommonNames

Category
lam
Author
Lam Yan (Account age: 3065days)
Extension
ComfyUI_Lam
Latest Updated
2025-03-06
Github Stars
0.02K

How to Install ComfyUI_Lam

Install this extension via the ComfyUI Manager by searching for ComfyUI_Lam
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_Lam 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

通用名称选择器 Description

Facilitates selection and management of common names in AI art models for efficient organization and access.

通用名称选择器:

The LamCommonNames node is designed to facilitate the selection and management of common names used within various AI art models and components. This node serves as a utility to streamline the process of identifying and working with different model names, such as checkpoint names, LoRA names, and others, by providing a structured way to access and manipulate these identifiers. By leveraging this node, you can efficiently manage and retrieve the names of various models and components, which is particularly useful in complex AI art projects where multiple models are involved. The node's primary function is to return a list of names, the count of these names, and a specific name based on an index, making it a versatile tool for organizing and accessing model-related information.

通用名称选择器 Input Parameters:

name_type

The name_type parameter is a required input that specifies the type of names you want to work with. It offers a selection from a predefined list of model-related names, such as "ckpt_name", "lora_name", "clip_name", and others. This parameter helps in categorizing and filtering the names you are interested in, ensuring that you only retrieve relevant information. The available options are sorted alphabetically, providing a clear and organized selection process.

i

The i parameter is an optional integer input that allows you to specify the index of the name you wish to retrieve from the list. By providing an index, you can directly access a specific name, which is useful when you need to work with a particular model or component. If not provided, the node will not attempt to retrieve a specific name, and the default behavior will be to return an empty string for the name.

names

The names parameter is a hidden input that takes a string of comma-separated names. This parameter is used internally to store and manage the list of names that the node will process. By default, it is set to an empty string, and it is not intended for direct manipulation by the user.

通用名称选择器 Output Parameters:

名称列表

The 名称列表 (Name List) output provides a list of names based on the specified name_type. This output is essential for understanding the available models or components within the selected category, allowing you to make informed decisions about which models to use in your projects.

选择数量

The 选择数量 (Selection Count) output returns the total number of names available in the list. This output is useful for determining the scope of available options and can help in iterating over the list if needed.

下标名称

The 下标名称 (Indexed Name) output provides the specific name at the index specified by the i parameter. This output is particularly valuable when you need to work with a specific model or component, as it allows you to directly access the desired name without manually searching through the list.

通用名称选择器 Usage Tips:

  • Use the name_type parameter to filter and categorize the names you are interested in, ensuring that you only retrieve relevant information for your project.
  • If you need to work with a specific model or component, utilize the i parameter to directly access the desired name, saving time and effort in managing your models.

通用名称选择器 Common Errors and Solutions:

IndexError: list index out of range

  • Explanation: This error occurs when the specified index i is greater than or equal to the number of names in the list.
  • Solution: Ensure that the index i is within the valid range of the list by checking the 选择数量 output before attempting to access a specific name.

ValueError: invalid literal for int() with base 10

  • Explanation: This error may occur if the i parameter is not provided as an integer.
  • Solution: Verify that the i parameter is correctly set as an integer value to avoid this error.

通用名称选择器 Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_Lam
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 Playground, enabling artists to harness the latest AI tools to create incredible art.