ComfyUI > Nodes > ComfyUI-TBG-SAM3 > TBG SAM3 Batch Selector

ComfyUI Node: TBG SAM3 Batch Selector

Class Name

TBGSam3SegmentationBatch

Category
TBG/SAM3
Author
Ltamann (Account age: 4766days)
Extension
ComfyUI-TBG-SAM3
Latest Updated
2025-11-29
Github Stars
0.14K

How to Install ComfyUI-TBG-SAM3

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

TBG SAM3 Batch Selector Description

Facilitates efficient batch image segmentation using SAM3, optimizing large dataset processing.

TBG SAM3 Batch Selector:

The TBGSam3SegmentationBatch node is designed to facilitate batch processing of image segmentation tasks using the SAM3 model. This node is particularly beneficial for users who need to process multiple images or frames simultaneously, allowing for efficient and streamlined segmentation workflows. By leveraging batch processing, the node can handle large datasets more effectively, reducing the time and computational resources required for individual image processing. The primary goal of this node is to provide a robust and scalable solution for segmenting images in bulk, making it an essential tool for AI artists and developers working with large volumes of visual data. The node ensures that the segmentation model is properly configured and optimized for batch operations, enhancing the overall performance and accuracy of the segmentation results.

TBG SAM3 Batch Selector Input Parameters:

batch_size

The batch_size parameter determines the number of images or frames that will be processed simultaneously in a single batch. A larger batch size can improve processing speed by taking advantage of parallel computation, but it may also require more memory. Conversely, a smaller batch size may be more memory-efficient but could result in longer processing times. The optimal batch size depends on the available system resources and the specific requirements of the task. Users should adjust this parameter based on their hardware capabilities and the complexity of the images being processed.

confidence_threshold

The confidence_threshold parameter sets the minimum confidence level required for a segmentation result to be considered valid. This threshold helps filter out low-confidence predictions, ensuring that only reliable segmentation results are included in the output. A higher confidence threshold may result in fewer but more accurate segmentations, while a lower threshold may include more segmentations with varying levels of accuracy. Users should adjust this parameter based on their desired balance between precision and recall in the segmentation results.

TBG SAM3 Batch Selector Output Parameters:

all_detection_masks

The all_detection_masks output provides a collection of individual detection masks for each image or frame processed in the batch. These masks represent the segmented areas identified by the model, allowing users to visualize and analyze the specific regions of interest within each image. This output is crucial for applications that require detailed segmentation information for further processing or analysis.

all_combined_masks

The all_combined_masks output offers a single combined mask for each image or frame, aggregating all detected segments into one comprehensive mask. This output is useful for users who need a simplified representation of the segmentation results, providing a clear overview of the segmented areas within each image.

all_vis_tensors

The all_vis_tensors output consists of visualization tensors for each image or frame, offering a graphical representation of the segmentation results. These visualizations help users quickly assess the quality and accuracy of the segmentation, making it easier to identify any potential issues or areas for improvement.

all_segs

The all_segs output contains the segmentation data for all images or frames processed in the batch. This data includes detailed information about each segment, such as its location, size, and confidence level, providing users with a comprehensive understanding of the segmentation results.

TBG SAM3 Batch Selector Usage Tips:

  • Adjust the batch_size parameter based on your system's memory capacity to optimize processing speed without exceeding available resources.
  • Set the confidence_threshold to a level that balances precision and recall, ensuring that the segmentation results meet your accuracy requirements.
  • Use the all_detection_masks output for detailed analysis of individual segments, and the all_combined_masks output for a simplified overview of the segmentation results.

TBG SAM3 Batch Selector Common Errors and Solutions:

MemoryError

  • Explanation: This error occurs when the batch size is too large for the available system memory, causing the process to run out of memory.
  • Solution: Reduce the batch_size parameter to a smaller value that fits within your system's memory capacity.

LowConfidenceError

  • Explanation: This error indicates that the confidence threshold is set too high, resulting in no valid segmentation results being produced.
  • Solution: Lower the confidence_threshold parameter to allow more segmentations to be considered valid, increasing the likelihood of obtaining useful results.

TBG SAM3 Batch Selector Related Nodes

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