ComfyUI > Nodes > ComfyUI_KimNodes > 🍒Image_List_Splitter📂图片列表分割器

ComfyUI Node: 🍒Image_List_Splitter📂图片列表分割器

Class Name

Image_List_Splitter

Category
🍒 Kim-Nodes/🏖️图像处理
Author
Kim (Account age: 2536days)
Extension
ComfyUI_KimNodes
Latest Updated
2025-09-22
Github Stars
0.05K

How to Install ComfyUI_KimNodes

Install this extension via the ComfyUI Manager by searching for ComfyUI_KimNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_KimNodes 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_List_Splitter📂图片列表分割器 Description

Divides image lists into two groups with options for random selection and placeholder generation.

🍒Image_List_Splitter📂图片列表分割器:

The Image_List_Splitter node is designed to efficiently divide a list of images into two distinct groups based on user-defined criteria. This node is particularly useful for tasks that require processing or analyzing a subset of images separately from the rest. By allowing you to specify the number of images to select for the first group, the node provides flexibility in handling image datasets. Additionally, it offers the option to randomly select images, which can be beneficial for tasks that require random sampling or testing. The node ensures that even if the remaining images list is empty, a placeholder black image is generated to maintain consistency in output formats. This functionality is crucial for AI artists who need to manage and manipulate large sets of images efficiently, providing a streamlined approach to image list management.

🍒Image_List_Splitter📂图片列表分割器 Input Parameters:

images

This parameter represents the list of input images that you want to split. It is essential for the node's operation as it determines the dataset that will be divided into two groups. The images should be provided as a list of tensors, ensuring compatibility with the node's processing capabilities.

split_count

The split_count parameter specifies the number of images to be included in the first group. It directly impacts how the image list is divided, allowing you to control the size of the selected images group. The minimum value is 1, the maximum is 99999, and the default is 1. This flexibility enables you to tailor the node's behavior to your specific needs, whether you require a small sample or a larger subset of images.

enable_random

This boolean parameter determines whether the selection of images for the first group should be random. When set to True, the node will shuffle the images before selecting the specified number, introducing variability and randomness into the selection process. The default value is False, which means images are selected in their original order unless specified otherwise.

random_seed

The random_seed parameter is used to initialize the random number generator when enable_random is set to True. It ensures reproducibility of the random selection process by allowing you to specify a seed value. The minimum value is 0, the maximum is 0xffffffffffffffff, and the default is 0. By setting a specific seed, you can achieve consistent results across different runs, which is particularly useful for testing and validation purposes.

🍒Image_List_Splitter📂图片列表分割器 Output Parameters:

selected_images

This output parameter contains the list of images that have been selected for the first group based on the split_count and enable_random settings. It is crucial for tasks that require focused processing on a specific subset of images, allowing you to easily access and manipulate the selected images.

remaining_images

The remaining_images output parameter provides the list of images that were not selected for the first group. If no images remain, a black image is generated to ensure the output format remains consistent. This parameter is important for managing the leftover images, enabling further processing or analysis as needed.

🍒Image_List_Splitter📂图片列表分割器 Usage Tips:

  • To ensure reproducibility when using random selection, always set a specific random_seed value.
  • Use the split_count parameter to control the size of your selected images group, adjusting it based on the needs of your specific task.

🍒Image_List_Splitter📂图片列表分割器 Common Errors and Solutions:

"Input is not a list"

  • Explanation: This error occurs when the input images are not provided as a list.
  • Solution: Ensure that the images are passed as a list of tensors to the node.

"Split count exceeds total images"

  • Explanation: This error happens when the split_count is greater than the number of images available.
  • Solution: Adjust the split_count to be less than or equal to the total number of images in the input list.

🍒Image_List_Splitter📂图片列表分割器 Related Nodes

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

🍒Image_List_Splitter📂图片列表分割器