首页/ 节点库/ SAMDetector (combined)
第三方插件 ComfyUI-Impact-Pack

SAMDetector (combined)

利用 SAM 技术对输入的 SEGS 区域进行精确分割,并将所有检测到的掩码合并为单一输出。SAMDetector (combined)-

SAMDetector (combined) 2026-01-28 收录 623 次浏览

节点中英文对比

ComfyUI 结构对照

按当前节点配置,分别展示中文与英文节点结构。面板按 ComfyUI 实际界面还原: 左侧圆点是输入,右侧圆点与该行最右的名称为输出,下方胶囊是控件参数; 控件两端的三角表示可切换的选项。

中文节点 10 项
SAMDetector (combined)
sam_model 遮罩
segs
image
detection_hint —
dilation —
threshold —
bbox_expansion —
mask_hint_threshold —
mask_hint_use_negative —
英文节点 10 项
SAMDetector (combined)
sam_model MASK
segs
image
detection_hint —
dilation —
threshold —
bbox_expansion —
mask_hint_threshold —
mask_hint_use_negative —
模型 条件 / 数值 Latent 其它类型 左圆点 = 输入,右圆点 = 输出 可切换选项 — 未设置默认值

面板用于对照参数位置与命名,不做交互;实际节点外观以 ComfyUI 内的主题为准。

参数说明

输入 3 · 输出 1 · 控件 6

依据当前节点关联的 NodesItems 数据,按输入、输出、控件三类分别列出名称与说明。

输入参数 3 项
sam_model sam_model
所选的 Segment Anything 模型实例。
segs segs
原始区域分割信息。
image image
对应原图图像(非 SEGS 内含图像)。
输出参数 1 项
遮罩 MASK
由 SAM 模型对所有 SEGS 区域综合分析后生成的联合掩码。
控件参数 6 项
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。

节点详解

原理 · 用法 · 常见问题
暂无节点说明

常见问题

按节点参数整理
SAMDetector (combined)是做什么的?
利用 SAM 技术对输入的 SEGS 区域进行精确分割,并将所有检测到的掩码合并为单一输出。SAMDetector (combined)-
SAMDetector (combined)有哪些输入参数?
共 3 个输入,包括 sam_model(sam_model)、segs(segs)、image(image)。
SAMDetector (combined)的输出是什么?
共 1 个输出:遮罩(MASK)。
SAMDetector (combined)有哪些可调参数?
共 6 个控件参数,包括 detection_hint(detection_hint)、dilation(dilation)、threshold(threshold)、bbox_expansion(bbox_expansion)、mask_hint_threshold(mask_hint_threshold)、mask_hint_use_negative(mask_hint_use_negative)。
SAMDetector (combined)属于哪个节点包?
属于「ComfyUI-Impact-Pack」,节点分类为「第三方插件」。

同类节点

ComfyUI-Impact-Pack