ComfyUI Node: LayerMask: SAM2 Ultra(Advance)

Authored by chflame163

Created

Updated

689 stars

Run LayerMask: SAM2 Ultra(Advance) 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

😺dzNodes/LayerMask

Inputs

image IMAGE
bboxes BBOXES
sam2_model
  • sam2_hiera_base_plus.safetensors
  • sam2_hiera_large.safetensors
  • sam2_hiera_small.safetensors
  • sam2_hiera_tiny.safetensors
  • sam2.1_hiera_base_plus.safetensors
  • sam2.1_hiera_large.safetensors
  • sam2.1_hiera_small.safetensors
  • sam2.1_hiera_tiny.safetensors
precision
  • fp16
  • bf16
  • fp32
bbox_select
  • all
  • first
  • by_index
select_index STRING
cache_model BOOLEAN
detail_method
  • VITMatte
  • VITMatte(local)
  • vitmatte-base-composition-1k
  • PyMatting
  • GuidedFilter
detail_erode INT
detail_dilate INT
black_point FLOAT
white_point FLOAT
process_detail BOOLEAN
device
  • cuda
  • cpu
max_megapixels FLOAT

Outputs

IMAGE

MASK

Extension: ComfyUI_LayerStyle_Advance

The nodes detached from ComfyUI Layer Style are mainly those with complex requirements for dependency packages.

Authored by chflame163

Looking for a different node?

Run LayerMask: SAM2 Ultra(Advance) 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