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
SAMDetector (combined) - 参数说明
输入参数
sam_model
所选的 Segment Anything 模型实例。
segs
原始区域分割信息。
image
对应原图图像(非 SEGS 内含图像)。
输出参数
MASK
由 SAM 模型对所有 SEGS 区域综合分析后生成的联合掩码。
控件参数
detection_hint
SAM 的提示点生成策略:
center-1:使用 bbox 中心作为提示点,适用于主体清晰的场景;
horizontal-2 / vertical-2:左右/上下两个提示点;
rect-4 / diamond-4:使用四个角提示点;
mask-area:使用原始掩码作为提示;
mask-points:从原掩码采样多个点;
mask-point-bbox:结合中心点与掩码;
none:使用全图默认提示,常作为 fallback。
dilation
对最终 Mask 的膨胀/腐蚀处理。正值膨胀,负值腐蚀。
threshold
SAM 检测敏感度(范围 0~1)。
bbox_expansion
扩展每个 SEGS 中 bbox 的像素边距。
mask_hint_threshold
当使用 mask 类提示时,设置提示掩码的阈值。
mask_hint_use_negative
是否添加负提示区域,值为:False, Small, Outter。
暂无节点说明