ComfyUI > Nodes > ComfyUI-tbox > Batch Manager

ComfyUI Node: Batch Manager

Class Name

BatchManager

Category
tbox/Video
Author
ai-shizuka (Account age: 3606days)
Extension
ComfyUI-tbox
Latest Updated
2025-04-22
Github Stars
0.02K

How to Install ComfyUI-tbox

Install this extension via the ComfyUI Manager by searching for ComfyUI-tbox
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-tbox 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

Batch Manager Description

BatchManager optimizes video processing by managing frames in batches, enhancing efficiency.

Batch Manager:

The BatchManager node is designed to efficiently handle video processing tasks by managing frames in batches. This node is particularly useful for AI artists working with video data, as it allows for the segmentation of video frames into manageable batches, optimizing processing time and resource usage. The primary function of the BatchManager is to update and manage these batches based on the specified number of frames per batch, ensuring that video processing tasks are executed smoothly and efficiently. By organizing frames into batches, the node helps in maintaining a streamlined workflow, reducing the complexity of handling large video files, and improving the overall performance of video processing tasks.

Batch Manager Input Parameters:

frames_per_batch

The frames_per_batch parameter specifies the number of frames to be included in each batch. This parameter is crucial as it determines the size of each batch, directly impacting the processing efficiency and speed. A smaller batch size may lead to more frequent processing cycles, while a larger batch size can optimize resource usage by reducing the number of cycles needed. The frames_per_batch parameter accepts integer values with a default of 16, a minimum of 1, and a maximum of 128. Adjusting this parameter allows you to tailor the batch size to your specific processing needs and available resources.

prompt

The prompt parameter is a hidden input that is used internally to manage batch processing. It is not directly manipulated by the user but plays a role in determining whether a batch should be requeued for processing. This parameter helps in maintaining the continuity and integrity of batch processing, ensuring that all frames are processed as intended.

unique_id

The unique_id parameter is another hidden input that serves as an identifier for each batch. It is used to track and manage individual batches within the processing workflow. This parameter is essential for ensuring that each batch is uniquely identified and processed correctly, preventing any mix-up or duplication of frames during batch processing.

Batch Manager Output Parameters:

meta_batch

The meta_batch output parameter represents the processed batch of frames. This output is crucial as it provides the result of the batch processing, allowing you to access and utilize the processed video frames for further tasks or analysis. The meta_batch output ensures that the processed data is organized and ready for subsequent steps in your video processing workflow.

Batch Manager Usage Tips:

  • Adjust the frames_per_batch parameter based on the complexity and size of your video files to optimize processing efficiency and resource usage.
  • Utilize the unique_id parameter to track and manage batches effectively, ensuring that each batch is processed correctly and without duplication.

Batch Manager Common Errors and Solutions:

"update_batch >> unique_id: None; requeue: 0"

  • Explanation: This message indicates that the unique_id parameter was not provided, which may lead to issues in tracking and managing batches.
  • Solution: Ensure that a valid unique_id is provided for each batch to facilitate proper tracking and management during processing.

"BatchNode reset"

  • Explanation: This message signifies that the BatchManager node has been reset, which may occur if there is an issue with the current batch configuration.
  • Solution: Verify the batch configuration and ensure that all input parameters are correctly set before initiating batch processing.

Batch Manager Related Nodes

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

Batch Manager