ComfyUI Node
Fantastic H3 Object Mask (SAM 3.1)
Used by the Media Loader's Mask for editing panel: finds an object or person in a loaded clip with SAM 3.1 (core ComfyUI's SAM 3 nodes) and saves its mask beside the clip. You don't need to place this node yourself.
Fantastic H3 Object Mask (SAM 3.1)
- model
- clip
◄video►
◄text►
◄points►
◄start0.000►
◄end0.000►
◄threshold0.50►
◄max_objects4►
◄modereplace►
◄base►
◄every_framefalse►
Categoryconditioning/video_models
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| model | MODEL | SAM 3.1, from Load Checkpoint. | |
| clip | CLIP | SAM 3.1's text encoder, from the same Load Checkpoint. | |
| video | STRING | A Media Loader file, e.g. minimax_h3/clip.mp4 [input]. | |
| text | STRING | What to find, e.g. phone. Commas for several. | |
| points | STRING | Clicked points as JSON: {"frames": [{"time": seconds, "positive": [{"x", "y"}], "negative": [...]}]}, x and y from 0 to 1 on the source frame. | |
| start | FLOAT | 0.0000–36000 | Trim start in seconds: only the kept span is masked. |
| end | FLOAT | 0.0000–36000 | Trim end in seconds; 0 is the end of the clip. |
| threshold | FLOAT | 0.500.05–0.95 | — |
| max_objects | INT | 41–16 | — |
| modeopt | COMBO | replace | What to do with the clip's current mask: replace it, add what's found to it, or take what's found out of it. |
| baseopt | STRING | The layer's current mask file, for add and subtract. | |
| every_frameopt | BOOLEAN | false | With dots and a name: also look for the name on every frame, and use what it finds wherever tracking lost the object (after a cut, say). Can pick up look-alikes. |
Outputs (0)
No outputs