Meta Batch Manager π₯π ₯π π ’(BatchManager)
From a technical implementation perspective, this node internally maintains a state manager for inputs and outputs.
Batch Manager
The Meta Batch Manager π₯π ₯π π ’ node, from a technical implementation perspective, internally maintains state managers for its inputs and outputs.
The Meta Batch Manager is a core management node within the Video Helper Suite, designed to efficiently organize and schedule frame batches in video processing workflows. Its primary function is to act as a central controller, segmenting a continuous stream of video frames into fixed-size batches for subsequent nodes to process in bulk, thereby optimizing memory usage and computational efficiency.
Node Functionality
From a technical implementation perspective, this node internally maintains state managers for its inputs and outputs. It manages its lifecycle by tracking a unique identifier (unique_id) and information from the workflow prompt (prompt). The node contains internal methods such as reset (reset), closing inputs (close_inputs), and checking for open inputs (has_open_inputs). These ensure resources are correctly initialized and released when processing large frame sequences and support recalculating the total number of batches under specific conditions (e.g., during re-queuing).
Node Parameter Description - Meta Batch Manager π₯π ₯π π ’
Control Parameters (Parameters)
| Parameter Name | Data Type | Required | Default Value | Value Range/Options | Description |
|---|---|---|---|---|---|
frames_per_batch | INT | Yes | 16 | 1 - BIGMAX (Step: 1) | Parameter description 1 (Input parameter: frames_per_batch - Used to set the number of video frames contained in each processing batch. The value range is from 1 to a very large maximum, with a step size of 1.) |
Output
| Parameter Name | Data Type | Description |
|---|---|---|
| meta_batch | VHS_BatchManager | Parameter description 2 (Output parameter: meta_batch - Outputs a batch management object for passing to subsequent video processing nodes.) |
Usage Scenario
In a typical video upscaling or frame interpolation workflow, you can place this node at the beginning of the process. For example, after loading a video sequence, connect it to the Meta Batch Manager, set the number of frames to process per batch, and then pass the output meta_batch object to subsequent upscaling or encoding nodes. This way, subsequent nodes will process the video batch by batch according to the set size, rather than loading all frames at once, effectively preventing out-of-memory issues.
Meta Batch Manager π₯π ₯π π ’ Node Source Code Link
The Meta Batch Manager π₯π ₯π π ’ node is from the ComfyUI-VideoHelperSuite node package.
Comments
Sign in with GitHub to join the discussion.