🍒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_seedvalue. - Use the
split_countparameter 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_countis greater than the number of images available. - Solution: Adjust the
split_countto be less than or equal to the total number of images in the input list.
