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:
@@ -6,10 +6,8 @@
|
||||
|
||||
import os
|
||||
import sys
|
||||
import json
|
||||
import numpy as np
|
||||
import cv2
|
||||
from pathlib import Path
|
||||
|
||||
# 添加項目根目錄到 Python 路徑
|
||||
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
@@ -70,7 +68,7 @@ def test_face_registration():
|
||||
)
|
||||
|
||||
if result["success"]:
|
||||
print(f"✅ 人臉註冊成功")
|
||||
print("✅ 人臉註冊成功")
|
||||
print(f" - Face ID: {result.get('face_id')}")
|
||||
print(f" - 嵌入向量維度: {len(result.get('embedding', []))}")
|
||||
print(f" - 屬性: {result.get('attributes', {})}")
|
||||
@@ -79,7 +77,7 @@ def test_face_registration():
|
||||
embedding = result.get("embedding", [])
|
||||
if embedding:
|
||||
np.save("/tmp/test_face_embedding.npy", embedding)
|
||||
print(f"✅ 嵌入向量已保存")
|
||||
print("✅ 嵌入向量已保存")
|
||||
|
||||
return True, result
|
||||
else:
|
||||
@@ -237,7 +235,7 @@ def test_database_operations():
|
||||
)
|
||||
|
||||
result = cursor.fetchone()
|
||||
print(f"✅ 查詢結果:")
|
||||
print("✅ 查詢結果:")
|
||||
print(f" - ID: {result[0]}")
|
||||
print(f" - 視頻UUID: {result[1]}")
|
||||
print(f" - 幀號: {result[2]}")
|
||||
|
||||
Reference in New Issue
Block a user