Visit ComfyUI Online for ready-to-use ComfyUI environment
Manage sequence of items efficiently, supporting various formats for systematic processing and monitoring of queue state.
The Queue node is designed to manage a sequence of items, such as file paths or data entries, in a structured and efficient manner. It supports a variety of formats including images, videos, text files, and JSON files, making it versatile for different types of data processing tasks. This node allows you to specify the current index of the queue item, pause the queue, or reset it back to the first index. The primary benefit of using the Queue node is its ability to handle multiple items systematically, ensuring that each item is processed in the correct order. This is particularly useful for tasks that require batch processing or sequential handling of data. The node outputs the current item in the queue, the entire queue, the current index, and the total number of items in the queue, providing comprehensive control and monitoring of the queue's state.
This parameter represents the queue of items, typically file paths or data entries, that you want to manage. It is a string that can contain multiple paths separated by newline characters. The queue is processed sequentially, and each item is handled according to the specified mode and other parameters. There is no explicit minimum or maximum value, but the default is an empty string.
The mode parameter determines how the items in the queue are processed. It is a string that specifies the scaling mode for images, with options such as NONE
, FIT
, and others. The default value is NONE
, which means no scaling is applied. This parameter impacts how images are resized and fitted within the specified dimensions.
This parameter specifies the width and height for processing images in the queue. It is a tuple of two integers, representing the dimensions (width, height). The default value is (512, 512), and it ensures that images are processed within these dimensions. The minimum value is the minimum image size supported by the system.
The sample parameter defines the interpolation method used when scaling images. It is a string that can take values such as LANCZOS4
, which is the default. This parameter affects the quality of the resized images, with different methods providing varying levels of smoothness and detail.
This parameter specifies the matte color to be applied to images. It is a tuple of four integers (R, G, B, A), representing the red, green, blue, and alpha (transparency) channels. The default value is (0, 0, 0, 255), which corresponds to a fully opaque black color. The values range from 0 to 255 for each channel.
This output represents the processed data from the queue. It can be any type of data, depending on the items in the queue and the processing applied.
This output provides the entire queue of items, allowing you to see all the entries being managed by the node.
This output gives the current item in the queue, indicating which item is currently being processed.
This output represents the current index of the queue, showing the position of the current item within the queue.
This output provides the total number of items in the queue, giving you an overview of the queue's size.
<file_path>
]LANCZOS4
, NEAREST
, or BILINEAR
.Β© Copyright 2024 RunComfy. All Rights Reserved.