ComfyUI Node: Sam2AutoSegmentation

Authored by kijai

Created

Updated

1206 stars

Run Sam2AutoSegmentation without installing ComfyUI

This node already runs on ComfyICU. Open it in the browser, hit run, and you're billed for GPU seconds — not for setup, and not while you're idle.

Category

SAM2

Inputs

sam2_model SAM2MODEL
image IMAGE
points_per_side INT
points_per_batch INT
pred_iou_thresh FLOAT
stability_score_thresh FLOAT
stability_score_offset FLOAT
mask_threshold FLOAT
crop_n_layers INT
box_nms_thresh FLOAT
crop_nms_thresh FLOAT
crop_overlap_ratio FLOAT
crop_n_points_downscale_factor INT
min_mask_region_area FLOAT
use_m2m BOOLEAN
keep_model_loaded BOOLEAN

Outputs

MASK

IMAGE

BBOX

Extension: ComfyUI-segment-anything-2

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

Authored by kijai

Looking for a different node?

Run Sam2AutoSegmentation without installing ComfyUI

This node already runs on ComfyICU. Open it in the browser, hit run, and you're billed for GPU seconds — not for setup, and not while you're idle.

Learn more