ComfyUI > Nodes > DJZ-Nodes > Batch Thief

ComfyUI Node: Batch Thief

Class Name

BatchThief

Category
image/batch
Author
DriftJohnson (Account age: 4052days)
Extension
DJZ-Nodes
Latest Updated
2025-04-25
Github Stars
0.04K

How to Install DJZ-Nodes

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

Efficiently extract specific image frames from batches for streamlined processing pipelines.

Batch Thief:

The BatchThief node is designed to efficiently extract a specific range of frames from a batch of images, which is particularly useful in scenarios where you need to process or analyze a subset of frames from a larger collection. This node is beneficial for tasks that involve batch processing of images, such as video frame extraction or image sequence manipulation. By allowing you to specify a start and end frame, BatchThief provides a flexible way to handle image data, ensuring that you can focus on the frames of interest without manually sorting through the entire batch. This capability is especially valuable in workflows where computational efficiency and precision are critical, as it helps streamline the processing pipeline by reducing the data to only what is necessary for your specific application.

Batch Thief Input Parameters:

images

The images parameter is the input batch of images from which frames will be extracted. It is expected to be a multi-dimensional array or tensor, typically with a shape that includes a batch dimension. This parameter is crucial as it provides the source data for the node to operate on. The node requires a batch of multiple images to function correctly, and if the input does not meet this requirement, a warning will be issued.

start_frame

The start_frame parameter specifies the index of the first frame to be extracted from the batch. It determines the beginning of the frame range that you want to isolate. The value of start_frame must be an integer, with a default value of 0, a minimum of 0, and a maximum of 999. This parameter allows you to control where the extraction process begins, ensuring that you can target specific frames within the batch.

end_frame

The end_frame parameter defines the index of the last frame to be extracted, marking the end of the frame range. Like start_frame, it must be an integer, with a default value of 1, a minimum of 0, and a maximum of 999. The end_frame parameter is essential for determining the extent of the frame extraction, allowing you to specify how many frames to include in the output. It is important to ensure that end_frame is greater than start_frame to avoid an empty range.

Batch Thief Output Parameters:

IMAGE

The output parameter, labeled as IMAGE, represents the extracted subset of frames from the input batch. This output is a batch of images that corresponds to the specified range between start_frame and end_frame. The extracted frames maintain the same structure as the input, ensuring compatibility with subsequent processing steps. This output is crucial for workflows that require specific frames for further analysis or manipulation, providing a streamlined and focused dataset.

Batch Thief Usage Tips:

  • Ensure that the input batch contains multiple images; otherwise, the node will issue a warning and return the original batch.
  • Adjust the start_frame and end_frame parameters carefully to avoid selecting an empty range, which would result in a warning and an empty output.

Batch Thief Common Errors and Solutions:

Warning: Batch Thief node requires a batch of multiple images

  • Explanation: This warning occurs when the input does not contain a batch of multiple images, which is necessary for the node to function properly.
  • Solution: Ensure that the input batch contains more than one image before passing it to the BatchThief node.

Warning: Selected frame range is empty

  • Explanation: This warning is triggered when the specified start_frame is greater than or equal to end_frame, resulting in an empty range.
  • Solution: Adjust the start_frame and end_frame parameters to ensure that the range is valid and contains at least one frame.

Batch Thief Related Nodes

Go back to the extension to check out more related nodes.
DJZ-Nodes
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 Playground, enabling artists to harness the latest AI tools to create incredible art.