Visit ComfyUI Online for ready-to-use ComfyUI environment
Randomly loads images from specified list, ensuring reproducibility and offering sorting and limiting options.
The LoadRandomImage
node is designed to randomly select and load images from a specified list of filenames. This node is particularly useful for AI artists who want to introduce an element of randomness into their workflows, such as for generating varied training data or creating diverse image outputs. By leveraging a seed value, the node ensures reproducibility of the random selection process, allowing you to achieve consistent results across different runs. Additionally, the node offers options to sort the images, limit the number of images loaded, and loop the sequence to ensure the first and last images are the same, which can be beneficial for creating seamless animations or consistent datasets.
This parameter takes a list of filenames from which the images will be randomly selected. The list should contain the paths to the image files you want to load. The quality and variety of the images in this list will directly impact the results produced by the node.
This parameter specifies the maximum number of images to load from the list. If set to 0, all images in the list will be considered. This allows you to control the volume of data being processed, which can be useful for managing memory usage and processing time. The default value is 0.
The seed value is used to initialize the random number generator, ensuring that the random selection of images is reproducible. By using the same seed value, you can achieve consistent results across different runs. This is particularly useful for debugging and for creating reproducible experiments. The default value is typically a random integer.
This boolean parameter determines whether the selected images should be sorted. If set to True
, the images will be sorted in ascending order based on their filenames. This can be useful for maintaining a specific order in your dataset. The default value is False
.
This boolean parameter, when set to True
, ensures that the last image in the sequence is the same as the first image. This is particularly useful for creating seamless loops in animations or for ensuring consistency in datasets where the first and last images need to match. The default value is False
.
This parameter returns the loaded images as a tensor. If multiple images are loaded, they are concatenated along a new dimension, making it easy to process them as a batch. The images are converted to RGB format and normalized to a range of 0 to 1, ensuring they are ready for further processing in your AI pipeline.
LoadRandomImage
node.max_num_images
parameter to control the number of images loaded, which can help manage memory usage and processing time.sort
parameter to True
.loop_sequence
parameter to ensure the first and last images are the same.max_num_images
parameter to limit the number of images being loaded at once.© Copyright 2024 RunComfy. All Rights Reserved.