ComfyUI Node
BFS Segment Picker (SAM 3)
BFS Segment Picker: segment an image into objects with SAM 3.1, pick them with the mouse, get their masks. Click objects on the canvas to select them; add missed ones by text or points.
BFS Segment Picker (SAM 3)
- image
- sam3_model
- sam3_clip
- mask
- masks
- marked
- overlay
- objects
◄conceptsperson, animal►
◄threshold0.40►
◄max_per_concept8►
◄min_area0.002►
◄mark_color#FF00FF►
◄mark_opacity0.30►
◄selection{}►
CategoryBFS/Mask
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| sam3_model | MODEL | SAM 3.1: MODEL of a Load Checkpoint node with sam3.1_multiplex_fp16.safetensors. | |
| sam3_clip | CLIP | SAM 3.1: CLIP of the same Load Checkpoint node; turns the concepts and Find texts into SAM prompts. | |
| concepts | STRING | person, animal | What the automatic pass looks for, comma separated (one SAM 3 text prompt each), e.g. person, animal, car, chair. Empty = no automatic pass, only what you add. |
| threshold | FLOAT | 0.400.05–0.95 | SAM 3 detection score threshold: lower finds more (and more false hits). |
| max_per_concept | INT | 81–32 | Most objects one concept or text prompt can return. |
| min_area | FLOAT | 0.0020–0.5 | Automatic objects smaller than this share of the image are dropped. |
| mark_color | STRING | #FF00FF | Tint of the selection in the marked output (hex). |
| mark_opacity | FLOAT | 0.300–1 | How strongly the marked output tints the selection (0.3 = the Colored Mark default). |
| selection | STRING | {} | Set by the canvas: the selected objects and the ones added by text or points. |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| mask | MASK | Union of the selected objects (one mask). |
| masks | MASK | One mask per selected object, in selection order. |
| marked | IMAGE | The image with the selection tinted (mark_color, mark_opacity). |
| overlay | IMAGE | Every object found, numbered; the selection stronger. |
| objects | STRING | JSON: size, selected ids and every object's id, label, score, box (relative x, y, w, h) and area. |