Visit ComfyUI Online for ready-to-use ComfyUI environment
Effortlessly select and load images from a directory, randomly or sequentially, aiding AI artists in automating image selection.
The FL_ImageRandomizer
node is designed to help you effortlessly select and load images from a specified directory, either randomly or sequentially. This node is particularly useful for AI artists who need to work with a large collection of images and want to automate the process of image selection. By providing a directory path, you can let the node handle the task of picking an image for you, which can be especially beneficial when dealing with datasets for training or generating art. The node ensures that the selected image is properly oriented and converted to a format suitable for further processing, making it a convenient tool for streamlining your workflow.
This parameter specifies the path to the directory containing the images you want to select from. It is a required parameter and must be a string. If the directory path is not provided, the node will raise an error. The default value is an empty string.
This boolean parameter determines whether the images should be selected randomly or sequentially. If set to True
, the node will pick an image at random from the specified directory. If set to False
, the node will select images in a sequential order, cycling through the images one by one. The default value is True
.
This integer parameter acts as a dummy input to address caching issues. It does not affect the functionality of the node directly but is required for the node to execute properly. The default value is 0
.
This output parameter provides the selected image as a tensor. The image is loaded, properly oriented, and converted to RGB format before being transformed into a tensor suitable for further processing in your workflow.
This output parameter provides the file path of the selected image. This can be useful for previewing the image or for any other operations where you need to know the exact location of the image file.
directory_path
parameter is correctly set to the folder containing your images to avoid errors.randomize
parameter to control whether you want a random image each time or to cycle through the images in order.run_trigger
parameter can be used to force the node to re-execute if you encounter caching issues.directory_path
parameter is left empty.© Copyright 2024 RunComfy. All Rights Reserved.