vault backup: 2026-04-24 12:56:16

This commit is contained in:
2026-04-24 12:56:17 +08:00
parent 9b4f89fe45
commit 15d6b14eda
4 changed files with 49 additions and 13 deletions

View File

@@ -66,11 +66,25 @@ tags:
- 连接:
- `Select Images`(第一帧)→ `image`
- `(Down)Load SAM2Model``sam2_model`
**选择以下任意一种提示方式填入:**
- **方式 A手绘 Mask最直观强烈推荐**
- 将图像连到 `Preview Image`,右键预览图 → `Open in Mask Editor`
- 用画笔涂抹目标区域Save 后得到 `mask`,连到 `Sam2Segmentation``mask` 输入
- 无需精确坐标,手绘粗略区域即可引导 SAM2 分割
- **方式 B点坐标适合精确控制**
- `coordinates_positive`: 填入正选点坐标(如 `[[0.45, 0.52]]`
- `coordinates_negative`: 填入反选点坐标(可选)
- `bboxes`: 如使用检测框则填入,否则留空
- 坐标获取技巧:先用 `Sam2AutoSegmentation` 跑一下看 `bbox` 参考;或在画图软件中读像素坐标再归一化
- **方式 C检测框**
- `bboxes`: 填入边界框 `[x1, y1, x2, y2]`,可通过 Florence-2 / Grounding DINO 自动生成
- 再加一个 `image``Preview Image`,连到 `Sam2Segmentation``mask` 输出
- **点击右上角「运行」**,先确认第一帧分割正确
- **效果不佳时**:直接修改 mask重画或坐标数值再次运行即可快速迭代
### 第 5 步:视频追踪核心链路