ComfyUI Node: Sam2AutoSegmentation

Authored by kijai

Created

Updated

830 stars

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

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