ComfyUI Node: Sam2Segmentation

Authored by kijai

Created

Updated

832 stars

Category

SAM2

Inputs

sam2_model SAM2MODEL
image IMAGE
keep_model_loaded BOOLEAN
coordinates_positive STRING
coordinates_negative STRING
bboxes BBOX
individual_objects BOOLEAN
mask MASK

Outputs

MASK

Extension: ComfyUI-segment-anything-2

Nodes to use a/segment-anything-2 for image or video segmentation.

Authored by kijai

Run ComfyUI workflows in the Cloud!

No downloads or installs are required. Pay only for active GPU usage, not idle time. No complex setups and dependency issues

Learn more