ComfyUI Node
TBG SAM3 Batch Selector
A ComfyUI node in TBG/SAM3 with 13 inputs and 4 outputs.
TBG SAM3 Batch Selector
- sam3_model
- image
- sam3_selectors_pipe
- mask_prompt
- segs
- visualization
- combined_mask
- batch_masks
◄confidence_threshold0.40►
◄pipeline_modeall►
◄detect_alltrue►
◄max_detections50►
◄instancesfalse►
◄crop_factor1.5►
◄min_size100►
◄fill_holesfalse►
◄text_prompt►
CategoryTBG/SAM3
Inputs (13)
| Name | Type | Default | Description |
|---|---|---|---|
| sam3_model | SAM3_MODEL | SAM3 model loaded from LoadSAM3Model node | |
| image | IMAGE | Input image batch to perform segmentation on (B,H,W,C) | |
| confidence_threshold | FLOAT | 0.400–1 | Minimum confidence score to keep detections |
| pipeline_mode | COMBO | all | Which prompts from pipeline to use |
| detect_all | BOOLEAN | true | When enabled, detects all objects. When disabled, uses max_detections |
| max_detections | INT | 501–100 | Maximum detections when detect_all is disabled |
| instances | BOOLEAN | false | When ON: keep only detections overlapping positive prompts |
| crop_factor | FLOAT | 1.51–4 | Crop factor for SEGS. 1.0 = tight bbox |
| min_size | INT | 1001–500 | Minimum segment size (square side in pixels) |
| fill_holes | BOOLEAN | false | Fill holes inside masks |
| text_promptopt | STRING | Text to guide segmentation | |
| sam3_selectors_pipeopt | SAM3_PROMPT_PIPELINE | Unified pipeline containing boxes/points | |
| mask_promptopt | MASK | Optional batch mask (B,H,W or 1,H,W) |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| segs | SEGS | — |
| visualization | IMAGE | — |
| combined_mask | MASK | — |
| batch_masks | MASK | — |