ComfyUI Node: LayerMask: SAM2 Ultra

Authored by chflame163

Created

Updated

236 stars

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)
  • 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

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