ComfyUI > Nodes > ComfyUI-SAM3 > SAM3 Combine Boxes

ComfyUI Node: SAM3 Combine Boxes

Class Name

SAM3CombineBoxes

Category
SAM3/prompts
Author
PozzettiAndrea (Account age: 2240days)
Extension
ComfyUI-SAM3
Latest Updated
2025-12-22
Github Stars
0.32K

How to Install ComfyUI-SAM3

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

SAM3 Combine Boxes Description

Combines multiple box prompts into one for efficient segmentation in SAM3Segmentation tasks.

SAM3 Combine Boxes:

The SAM3CombineBoxes node is designed to streamline the process of combining multiple box prompts into a single cohesive input for segmentation tasks. This node is particularly useful when working with the SAM3Segmentation system, as it allows you to merge several box prompts created by the SAM3CreateBox nodes into one unified prompt. This capability is essential for scenarios where multiple regions of interest need to be processed simultaneously, enhancing the efficiency and effectiveness of segmentation operations. By consolidating multiple box prompts, the SAM3CombineBoxes node simplifies the workflow, reduces complexity, and ensures that all relevant areas are considered in a single segmentation task, thereby improving the overall accuracy and performance of the segmentation process.

SAM3 Combine Boxes Input Parameters:

box_1

This parameter accepts a box prompt from a SAM3CreateBox node. It is used to specify the first box prompt that will be combined into the single input for segmentation. There are no minimum or maximum values, as it is a prompt input, and it is optional, meaning you can choose to connect it if needed.

box_2

Similar to box_1, this parameter accepts a second box prompt from a SAM3CreateBox node. It allows you to add another region of interest to the combined input. It is optional and can be connected if you have multiple boxes to combine.

box_3

This parameter functions like box_1 and box_2, allowing you to connect a third box prompt from a SAM3CreateBox node. It is optional and provides additional flexibility in combining multiple box prompts.

box_4

This parameter allows for the connection of a fourth box prompt from a SAM3CreateBox node. It is optional and can be used to further expand the combined input with additional box prompts.

box_5

This parameter is similar to the previous box parameters, allowing you to connect a fifth box prompt from a SAM3CreateBox node. It is optional and provides the capability to include even more regions of interest in the combined input.

SAM3 Combine Boxes Output Parameters:

boxes_prompt

The boxes_prompt output parameter represents the combined result of all connected box prompts. This output is crucial as it serves as the single, unified input for the SAM3Segmentation process, ensuring that all specified regions of interest are considered in the segmentation task. By providing a consolidated prompt, it simplifies the workflow and enhances the segmentation's accuracy and efficiency.

SAM3 Combine Boxes Usage Tips:

  • To maximize the effectiveness of the SAM3CombineBoxes node, ensure that all relevant SAM3CreateBox nodes are connected to it. This will allow you to capture all necessary regions of interest in a single segmentation task.
  • Use the node to simplify complex segmentation tasks by combining multiple box prompts into one. This can significantly reduce the time and effort required to process multiple regions separately.

SAM3 Combine Boxes Common Errors and Solutions:

Missing Box Prompt Connection

  • Explanation: This error occurs when no box prompts are connected to the SAM3CombineBoxes node, resulting in an empty combined prompt.
  • Solution: Ensure that at least one SAM3CreateBox node is connected to the SAM3CombineBoxes node to provide the necessary box prompts for combination.

Inconsistent Box Prompt Types

  • Explanation: This error arises when the connected box prompts are not of the expected type, leading to a failure in combining them.
  • Solution: Verify that all connected box prompts are of the type SAM3_BOX_PROMPT as required by the node's input parameters.

SAM3 Combine Boxes Related Nodes

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