Nodes/ComfyUI-TBG-SAM3/TBG SAM3 Batch Selector
ComfyUI Node

TBG SAM3 Batch Selector

A ComfyUI node in TBG/SAM3 with 13 inputs and 4 outputs.

By Ltamann·Created 9 months ago·Updated 17 days ago· 167
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)

NameTypeDefaultDescription
sam3_modelSAM3_MODELSAM3 model loaded from LoadSAM3Model node
imageIMAGEInput image batch to perform segmentation on (B,H,W,C)
confidence_thresholdFLOAT0.400–1Minimum confidence score to keep detections
pipeline_modeCOMBOallWhich prompts from pipeline to use
detect_allBOOLEANtrueWhen enabled, detects all objects. When disabled, uses max_detections
max_detectionsINT501–100Maximum detections when detect_all is disabled
instancesBOOLEANfalseWhen ON: keep only detections overlapping positive prompts
crop_factorFLOAT1.51–4Crop factor for SEGS. 1.0 = tight bbox
min_sizeINT1001–500Minimum segment size (square side in pixels)
fill_holesBOOLEANfalseFill holes inside masks
text_promptoptSTRINGText to guide segmentation
sam3_selectors_pipeoptSAM3_PROMPT_PIPELINEUnified pipeline containing boxes/points
mask_promptoptMASKOptional batch mask (B,H,W or 1,H,W)

Outputs (4)

NameTypeDescription
segsSEGS
visualizationIMAGE
combined_maskMASK
batch_masksMASK