第三方插件
ComfyUI-Impact-Pack
SAMDetector (combined)
利用 SAM 技术对输入的 SEGS 区域进行精确分割,并将所有检测到的掩码合并为单一输出。SAMDetector (combined)-
节点中英文对比
按当前节点配置,分别展示中文与英文节点结构。
中文节点
SAMDetector (combined)
detection_hint
dilation
threshold
bbox_expansion
mask_hint_threshold
mask_hint_use_negative
英文节点
SAMDetector (combined)
detection_hint
dilation
threshold
bbox_expansion
mask_hint_threshold
mask_hint_use_negative
参数说明
依据当前节点关联的 `NodesItems` 数据展示输入、输出与控件说明。
输入参数
sam_model
sam_model
所选的 Segment Anything 模型实例。
segs
segs
原始区域分割信息。
image
image
对应原图图像(非 SEGS 内含图像)。
输出参数
遮罩
MASK
由 SAM 模型对所有 SEGS 区域综合分析后生成的联合掩码。
控件参数
detection_hint
detection_hint
SAM 的提示点生成策略:
center-1:使用 bbox 中心作为提示点,适用于主体清晰的场景;
horizontal-2 / vertical-2:左右/上下两个提示点;
rect-4 / diamond-4:使用四个角提示点;
mask-area:使用原始掩码作为提示;
mask-points:从原掩码采样多个点;
mask-point-bbox:结合中心点与掩码;
none:使用全图默认提示,常作为 fallback。
dilation
dilation
对最终 Mask 的膨胀/腐蚀处理。正值膨胀,负值腐蚀。
threshold
threshold
SAM 检测敏感度(范围 0~1)。
bbox_expansion
bbox_expansion
扩展每个 SEGS 中 bbox 的像素边距。
mask_hint_threshold
mask_hint_threshold
当使用 mask 类提示时,设置提示掩码的阈值。
mask_hint_use_negative
mask_hint_use_negative
是否添加负提示区域,值为:False, Small, Outter。
详细说明
结合节点用途、参数和调用方式,给出更完整的说明内容。
暂无节点说明
同类节点导航
继续浏览同一分类下的相邻节点,方便串联学习。