docs: 020.mp4 face bbox fix report
修復步驟: 1. ✅ 清理無效數據 (Qdrant + face.json) 2. ✅ 修復 Swift Face processor bbox 驗證 3. ✅ 重新編譯 下一步: - 重新處理 020.mp4 - 驗證修復效果 文檔: docs_v1.0/M4_workspace/2026-09-28_020_mp4_fix.md
This commit is contained in:
@@ -0,0 +1,106 @@
|
|||||||
|
---
|
||||||
|
title: 020.mp4 Face BBox 問題修復報告
|
||||||
|
version: 1.0
|
||||||
|
date: 2026-09-28
|
||||||
|
author: OpenCode
|
||||||
|
status: fixed
|
||||||
|
---
|
||||||
|
|
||||||
|
## 問題描述
|
||||||
|
|
||||||
|
**文件**: 020.mp4
|
||||||
|
**UUID**: b496a68800f90770aa7246c877f38985
|
||||||
|
**狀態**: Face bbox 無效 (width=0, height=0)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 問題根源
|
||||||
|
|
||||||
|
**Face Detection 輸出**:
|
||||||
|
```
|
||||||
|
212 個 faces
|
||||||
|
所有 bbox: (x, y, 0, 0)
|
||||||
|
width = 0, height = 0
|
||||||
|
```
|
||||||
|
|
||||||
|
**影響**:
|
||||||
|
1. Face tracing 無法處理
|
||||||
|
2. 所有 trace_id = -1
|
||||||
|
3. 無 trace profiles
|
||||||
|
4. 無 FS VLM summary
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 修復步驟
|
||||||
|
|
||||||
|
### Step 1: 清理無效數據 ✅
|
||||||
|
|
||||||
|
- 刪除 Qdrant 中的無效 faces (210 points)
|
||||||
|
- 刪除無效的 face.json
|
||||||
|
|
||||||
|
### Step 2: 修復 Swift Face Processor ✅
|
||||||
|
|
||||||
|
**文件**: `scripts/swift_processors/swift_face.swift`
|
||||||
|
|
||||||
|
**修改**:
|
||||||
|
- 添加 bbox 驗證邏輯
|
||||||
|
- 過濾 width <= 0 或 height <= 0 的 bbox
|
||||||
|
- 添加警告日誌
|
||||||
|
|
||||||
|
**位置**:
|
||||||
|
1. Landmark observations (line 148-152)
|
||||||
|
2. Face rect observations (line 293-297)
|
||||||
|
|
||||||
|
**同時修復**:
|
||||||
|
- `swift_face_pose.swift` 的類型錯誤
|
||||||
|
- 添加相同的 bbox 驗證邏輯
|
||||||
|
|
||||||
|
### Step 3: 重新編譯 ✅
|
||||||
|
|
||||||
|
```
|
||||||
|
✅ Build complete! (12.81 sec)
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 修復後的行為
|
||||||
|
|
||||||
|
### 新的驗證邏輯
|
||||||
|
|
||||||
|
1. 檢查 bbox dimensions
|
||||||
|
2. 過濾無效 bbox
|
||||||
|
3. 添加警告日誌
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 下一步
|
||||||
|
|
||||||
|
### 需要重新處理
|
||||||
|
|
||||||
|
1. 020.mp4
|
||||||
|
- 清理了無效數據
|
||||||
|
- 需要重新運行 face detection
|
||||||
|
|
||||||
|
2. 其他受影響文件
|
||||||
|
- 檢查是否有其他文件有相同問題
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 總結
|
||||||
|
|
||||||
|
### ✅ 已完成
|
||||||
|
|
||||||
|
1. 清理無效數據
|
||||||
|
2. 修復 Swift Face processor
|
||||||
|
3. 重新編譯
|
||||||
|
|
||||||
|
### ⏳ 待執行
|
||||||
|
|
||||||
|
1. 重新處理 020.mp4
|
||||||
|
2. 驗證修復效果
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**日期**: 2026-09-28
|
||||||
|
|
||||||
|
**狀態**: ✅ **已修復,待重新處理**
|
||||||
Reference in New Issue
Block a user