cleanup: remove dead code and duplicate docs

- Remove session-ses_2f27.md (161KB raw session log)
- Remove 49 ROOT_* duplicate files across REFERENCE/
- Remove 14 duplicate files between REFERENCE/ root and history/
- Remove asr_legacy.rs (dead code, replaced by asr.rs)
- Remove src/core/worker/ (duplicate JobWorker)
- Remove src/core/layers/ (empty directory)
- Remove 4 .bak files in src/
- Remove 7 dead private methods in worker/processor.rs
- Remove backup directory from git tracking
This commit is contained in:
Warren
2026-05-04 01:31:21 +08:00
parent ee81e343ce
commit e75c4d6f07
3270 changed files with 35190 additions and 53367 deletions

View File

@@ -5,9 +5,7 @@
import os
import sys
import json
import numpy as np
from pathlib import Path
# 添加項目根目錄到 Python 路徑
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
@@ -162,7 +160,7 @@ def test_insightface_model():
if len(faces) > 0:
face = faces[0]
print(f"✅ 人臉屬性:")
print("✅ 人臉屬性:")
print(f" - 邊界框: {face.bbox}")
print(f" - 置信度: {face.det_score:.4f}")
print(
@@ -199,7 +197,7 @@ def test_face_processor():
print("正在加載模型...")
processor.load_models(use_mps=False)
print(f"✅ 處理器初始化成功")
print("✅ 處理器初始化成功")
print(f" - 啟用識別: {processor.enable_recognition}")
print(f" - 啟用追蹤: {processor.enable_tracking}")
print(f" - 啟用聚類: {processor.enable_clustering}")
@@ -224,7 +222,7 @@ def test_face_processor():
if len(detections) > 0:
detection = detections[0]
print(f"✅ 檢測結果示例:")
print("✅ 檢測結果示例:")
print(
f" - 位置: x={detection['x']}, y={detection['y']}, width={detection['width']}, height={detection['height']}"
)
@@ -236,7 +234,7 @@ def test_face_processor():
else:
print(f" - 嵌入向量長度: {len(embedding)}")
else:
print(f" - 嵌入向量: N/A")
print(" - 嵌入向量: N/A")
return True