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:
@@ -2,7 +2,6 @@
|
||||
"""測試 Places365 場景識別功能"""
|
||||
|
||||
import sys
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
# 添加腳本目錄到路徑
|
||||
@@ -52,7 +51,7 @@ def test_scene_classifier():
|
||||
|
||||
def test_video_classification(video_path: str):
|
||||
"""測試影片場景分類"""
|
||||
print(f"\n=== 測試影片場景分類 ===\n")
|
||||
print("\n=== 測試影片場景分類 ===\n")
|
||||
print(f"影片:{video_path}")
|
||||
|
||||
if not Path(video_path).exists():
|
||||
@@ -73,19 +72,19 @@ def test_video_classification(video_path: str):
|
||||
)
|
||||
|
||||
# 顯示結果
|
||||
print(f"\n✓ 分類完成")
|
||||
print("\n✓ 分類完成")
|
||||
print(f" 場景數量:{len(result['scenes'])}")
|
||||
|
||||
if result["scenes"]:
|
||||
scene = result["scenes"][0]
|
||||
print(f"\n主要場景:")
|
||||
print("\n主要場景:")
|
||||
print(f" 類型:{scene['scene_type']}")
|
||||
print(f" 中文:{scene.get('scene_type_zh', 'N/A')}")
|
||||
print(f" 持續時間:{scene['end_time'] - scene['start_time']:.1f} 秒")
|
||||
print(f" 信心度:{scene['confidence'] * 100:.1f}%")
|
||||
|
||||
if scene.get("top_5"):
|
||||
print(f"\nTop 5 預測:")
|
||||
print("\nTop 5 預測:")
|
||||
for i, pred in enumerate(scene["top_5"][:3]):
|
||||
print(
|
||||
f" {i + 1}. {pred['scene_type']} ({pred['confidence'] * 100:.1f}%)"
|
||||
|
||||
Reference in New Issue
Block a user