ComfyUI > Nodes > ComfyUI-YCNodes > Image Batch Selector

ComfyUI Node: Image Batch Selector

Class Name

ImageBatchSelector

Category
YCNode/Image
Author
yichengup (Account age: 473days)
Extension
ComfyUI-YCNodes
Latest Updated
2025-06-03
Github Stars
0.02K

How to Install ComfyUI-YCNodes

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

Image Batch Selector Description

Efficiently select specific images from a batch based on custom names for enhanced workflow efficiency.

Image Batch Selector:

The ImageBatchSelector node is designed to facilitate the selection of specific images from a batch of images based on custom names. This node is particularly useful in scenarios where you have a collection of images and need to extract a particular one by specifying its name. It allows for efficient image management by enabling you to input a list of image names and select the desired image either by directly providing the name or through a connected input. This functionality is beneficial for batch processing tasks where precise image selection is required, enhancing workflow efficiency and accuracy.

Image Batch Selector Input Parameters:

images

This parameter accepts a batch of images as input. It is essential for the node to function, as it provides the pool of images from which a specific image will be selected. The images should be in a compatible format that the node can process.

names

This parameter is a string that contains a list of image names, separated by commas. It serves as a reference list for the images in the batch, allowing you to specify which image to select by name. The default value is "image1,image2,image3", but you can customize it to match the names of your images. This parameter is crucial for identifying and selecting the correct image from the batch.

selected_name

This optional parameter allows you to specify the name of the image you wish to select from the batch. If provided, the node will validate this name against the list of names to ensure it is valid. If the selected name is not found in the list, an error will be raised. This parameter provides a direct way to choose a specific image without needing to manually search through the list.

Image Batch Selector Output Parameters:

IMAGE

The output of the ImageBatchSelector node is the selected image from the batch. This image is returned in a format that can be used for further processing or analysis. If the selected image is a single image, the node will add a batch dimension to it, ensuring consistency in output format. This output is crucial for tasks that require the use of a specific image from a larger set.

Image Batch Selector Usage Tips:

  • Ensure that the names parameter accurately reflects the names of the images in your batch to avoid selection errors.
  • Use the selected_name parameter to quickly select an image by name, which can streamline workflows that require frequent access to specific images.
  • If you encounter issues with image selection, double-check that the selected_name is correctly spelled and matches one of the names in the names list.

Image Batch Selector Common Errors and Solutions:

"至少需要一个有效的图像输入"

  • Explanation: This error occurs when no valid images are provided to the node.
  • Solution: Ensure that the images parameter contains a valid batch of images.

"选择的名称 '<selected_name>' 不在有效名称列表中"

  • Explanation: This error indicates that the specified selected_name is not found in the list of valid names.
  • Solution: Verify that the selected_name is correctly spelled and exists in the names list.

"名称列表不能为空"

  • Explanation: This error arises when the names parameter is empty.
  • Solution: Provide a non-empty list of names in the names parameter to ensure proper image selection.

Image Batch Selector Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-YCNodes
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.