fix: correct processor CLI tool paths and disable unimplemented tools
嚴重問題: - 配置文件中的 CLI 工具路徑錯誤 - 未實現的 Rust 工具被啟用 - 導致大部分 Processor 無法正常工作 修復: 1. Swift 工具路徑修正: - tools/cli/swift/.build/release/* → scripts/swift_processors/.build/release/* - 影響: ASRX, FACE, OCR, POSE 2. 禁用未實現的 Rust 工具: - rust_pose: enabled = false - rust_cut: enabled = false - 啟用 Python 作為備用 3. 文件名修正: - swift_asrx → asrx_swift 結果: - ✅ 5 個工具正常啟用 - ⚠️ 5 個工具正確禁用 - ✅ 0 個問題 啟用的工具: - ASRX: Swift (priority 0) - FACE: Swift (priority 0) - FACE_TRACE: Rust (priority 0) - OCR: Swift (priority 0) - POSE: Swift (priority 1) 禁用的工具 (未實現): - ASR: Rust - CUT: Rust - POSE: Rust - SCENE_VLM: Rust - TKG: Rust
This commit is contained in:
+107
-53
@@ -6,13 +6,16 @@
|
||||
"tool": "rust",
|
||||
"model": null,
|
||||
"priority": 0,
|
||||
"enabled": true,
|
||||
"enabled": false,
|
||||
"command": {
|
||||
"executable": "tools/cli/rust/target/release/rust_pose",
|
||||
"args": [
|
||||
"--video", "{video_path}",
|
||||
"--output", "{output_path}",
|
||||
"--uuid", "{file_uuid}"
|
||||
"--video",
|
||||
"{video_path}",
|
||||
"--output",
|
||||
"{output_path}",
|
||||
"--uuid",
|
||||
"{file_uuid}"
|
||||
]
|
||||
},
|
||||
"parameters": {},
|
||||
@@ -25,11 +28,13 @@
|
||||
"priority": 1,
|
||||
"enabled": true,
|
||||
"command": {
|
||||
"executable": "tools/cli/swift/.build/release/swift_pose",
|
||||
"executable": "scripts/swift_processors/.build/release/swift_pose",
|
||||
"args": [
|
||||
"{video_path}",
|
||||
"--output", "{output_path}",
|
||||
"--uuid", "{file_uuid}"
|
||||
"--output",
|
||||
"{output_path}",
|
||||
"--uuid",
|
||||
"{file_uuid}"
|
||||
]
|
||||
},
|
||||
"parameters": {},
|
||||
@@ -47,8 +52,10 @@
|
||||
"args": [
|
||||
"{video_path}",
|
||||
"{output_path}",
|
||||
"--uuid", "{file_uuid}",
|
||||
"--model-complexity", "{model_complexity}"
|
||||
"--uuid",
|
||||
"{file_uuid}",
|
||||
"--model-complexity",
|
||||
"{model_complexity}"
|
||||
]
|
||||
},
|
||||
"parameters": {
|
||||
@@ -69,7 +76,8 @@
|
||||
"args": [
|
||||
"{video_path}",
|
||||
"{output_path}",
|
||||
"--model", "{model_file}"
|
||||
"--model",
|
||||
"{model_file}"
|
||||
]
|
||||
},
|
||||
"parameters": {
|
||||
@@ -92,11 +100,13 @@
|
||||
"priority": 0,
|
||||
"enabled": true,
|
||||
"command": {
|
||||
"executable": "tools/cli/swift/.build/release/swift_face",
|
||||
"executable": "scripts/swift_processors/.build/release/swift_face",
|
||||
"args": [
|
||||
"{video_path}",
|
||||
"--output", "{output_path}",
|
||||
"--uuid", "{file_uuid}"
|
||||
"--output",
|
||||
"{output_path}",
|
||||
"--uuid",
|
||||
"{file_uuid}"
|
||||
]
|
||||
},
|
||||
"parameters": {},
|
||||
@@ -114,8 +124,10 @@
|
||||
"args": [
|
||||
"{video_path}",
|
||||
"{output_path}",
|
||||
"--uuid", "{file_uuid}",
|
||||
"--model", "{model_name}"
|
||||
"--uuid",
|
||||
"{file_uuid}",
|
||||
"--model",
|
||||
"{model_name}"
|
||||
]
|
||||
},
|
||||
"parameters": {
|
||||
@@ -142,9 +154,12 @@
|
||||
"executable": "tools/cli/rust/target/release/rust_whisper",
|
||||
"args": [
|
||||
"{video_path}",
|
||||
"--output", "{output_path}",
|
||||
"--uuid", "{file_uuid}",
|
||||
"--model", "{model_size}"
|
||||
"--output",
|
||||
"{output_path}",
|
||||
"--uuid",
|
||||
"{file_uuid}",
|
||||
"--model",
|
||||
"{model_size}"
|
||||
]
|
||||
},
|
||||
"parameters": {
|
||||
@@ -164,7 +179,8 @@
|
||||
"args": [
|
||||
"{video_path}",
|
||||
"{output_path}",
|
||||
"--model", "{model_size}"
|
||||
"--model",
|
||||
"{model_size}"
|
||||
]
|
||||
},
|
||||
"parameters": {
|
||||
@@ -188,11 +204,13 @@
|
||||
"priority": 0,
|
||||
"enabled": true,
|
||||
"command": {
|
||||
"executable": "tools/cli/swift/.build/release/swift_asrx",
|
||||
"executable": "scripts/swift_processors/.build/release/asrx_swift",
|
||||
"args": [
|
||||
"{video_path}",
|
||||
"--output", "{output_path}",
|
||||
"--uuid", "{file_uuid}"
|
||||
"--output",
|
||||
"{output_path}",
|
||||
"--uuid",
|
||||
"{file_uuid}"
|
||||
]
|
||||
},
|
||||
"parameters": {},
|
||||
@@ -210,7 +228,8 @@
|
||||
"args": [
|
||||
"{video_path}",
|
||||
"{output_path}",
|
||||
"--uuid", "{file_uuid}"
|
||||
"--uuid",
|
||||
"{file_uuid}"
|
||||
]
|
||||
},
|
||||
"parameters": {},
|
||||
@@ -231,11 +250,13 @@
|
||||
"priority": 0,
|
||||
"enabled": true,
|
||||
"command": {
|
||||
"executable": "tools/cli/swift/.build/release/swift_ocr",
|
||||
"executable": "scripts/swift_processors/.build/release/swift_ocr",
|
||||
"args": [
|
||||
"{video_path}",
|
||||
"--output", "{output_path}",
|
||||
"--uuid", "{file_uuid}"
|
||||
"--output",
|
||||
"{output_path}",
|
||||
"--uuid",
|
||||
"{file_uuid}"
|
||||
]
|
||||
},
|
||||
"parameters": {},
|
||||
@@ -253,7 +274,8 @@
|
||||
"args": [
|
||||
"{video_path}",
|
||||
"{output_path}",
|
||||
"--uuid", "{file_uuid}"
|
||||
"--uuid",
|
||||
"{file_uuid}"
|
||||
]
|
||||
},
|
||||
"parameters": {},
|
||||
@@ -277,9 +299,12 @@
|
||||
"executable": "tools/cli/rust/target/release/rust_store_traced_faces",
|
||||
"args": [
|
||||
"{file_uuid}",
|
||||
"--output-dir", "{output_dir}",
|
||||
"--min-trace-len", "{min_trace_len}",
|
||||
"--min-confidence", "{min_confidence}"
|
||||
"--output-dir",
|
||||
"{output_dir}",
|
||||
"--min-trace-len",
|
||||
"{min_trace_len}",
|
||||
"--min-confidence",
|
||||
"{min_confidence}"
|
||||
]
|
||||
},
|
||||
"parameters": {
|
||||
@@ -298,8 +323,10 @@
|
||||
"executable": "/opt/homebrew/bin/python3.11",
|
||||
"script": "scripts/store_traced_faces.py",
|
||||
"args": [
|
||||
"--file-uuid", "{file_uuid}",
|
||||
"--face-json", "{face_json}"
|
||||
"--file-uuid",
|
||||
"{file_uuid}",
|
||||
"--face-json",
|
||||
"{face_json}"
|
||||
]
|
||||
},
|
||||
"parameters": {},
|
||||
@@ -322,10 +349,14 @@
|
||||
"command": {
|
||||
"executable": "tools/cli/rust/target/release/rust_scene_vlm",
|
||||
"args": [
|
||||
"--file-uuid", "{file_uuid}",
|
||||
"--output-dir", "{output_dir}",
|
||||
"--llm-url", "{llm_url}",
|
||||
"--max-tokens", "{max_tokens}"
|
||||
"--file-uuid",
|
||||
"{file_uuid}",
|
||||
"--output-dir",
|
||||
"{output_dir}",
|
||||
"--llm-url",
|
||||
"{llm_url}",
|
||||
"--max-tokens",
|
||||
"{max_tokens}"
|
||||
]
|
||||
},
|
||||
"parameters": {
|
||||
@@ -344,10 +375,14 @@
|
||||
"executable": "/opt/homebrew/bin/python3.11",
|
||||
"script": "scripts/scene_vlm_summary.py",
|
||||
"args": [
|
||||
"--file-uuid", "{file_uuid}",
|
||||
"--output-dir", "{output_dir}",
|
||||
"--llm-url", "{llm_url}",
|
||||
"--max-tokens", "{max_tokens}"
|
||||
"--file-uuid",
|
||||
"{file_uuid}",
|
||||
"--output-dir",
|
||||
"{output_dir}",
|
||||
"--llm-url",
|
||||
"{llm_url}",
|
||||
"--max-tokens",
|
||||
"{max_tokens}"
|
||||
]
|
||||
},
|
||||
"parameters": {
|
||||
@@ -373,8 +408,10 @@
|
||||
"command": {
|
||||
"executable": "tools/cli/rust/target/release/rust_tkg",
|
||||
"args": [
|
||||
"--file-uuid", "{file_uuid}",
|
||||
"--output-dir", "{output_dir}"
|
||||
"--file-uuid",
|
||||
"{file_uuid}",
|
||||
"--output-dir",
|
||||
"{output_dir}"
|
||||
]
|
||||
},
|
||||
"parameters": {},
|
||||
@@ -390,8 +427,10 @@
|
||||
"executable": "/opt/homebrew/bin/python3.11",
|
||||
"script": "scripts/build_tkg.py",
|
||||
"args": [
|
||||
"--file-uuid", "{file_uuid}",
|
||||
"--output-dir", "{output_dir}"
|
||||
"--file-uuid",
|
||||
"{file_uuid}",
|
||||
"--output-dir",
|
||||
"{output_dir}"
|
||||
]
|
||||
},
|
||||
"parameters": {},
|
||||
@@ -410,14 +449,17 @@
|
||||
"tool": "rust",
|
||||
"model": null,
|
||||
"priority": 0,
|
||||
"enabled": true,
|
||||
"enabled": false,
|
||||
"command": {
|
||||
"executable": "tools/cli/rust/target/release/rust_cut",
|
||||
"args": [
|
||||
"{video_path}",
|
||||
"--output", "{output_path}",
|
||||
"--uuid", "{file_uuid}",
|
||||
"--min-scene-duration", "{min_scene_duration}"
|
||||
"--output",
|
||||
"{output_path}",
|
||||
"--uuid",
|
||||
"{file_uuid}",
|
||||
"--min-scene-duration",
|
||||
"{min_scene_duration}"
|
||||
]
|
||||
},
|
||||
"parameters": {
|
||||
@@ -431,14 +473,15 @@
|
||||
"tool": "python",
|
||||
"model": null,
|
||||
"priority": 1,
|
||||
"enabled": false,
|
||||
"enabled": true,
|
||||
"command": {
|
||||
"executable": "/opt/homebrew/bin/python3.11",
|
||||
"script": "scripts/cut_detector.py",
|
||||
"args": [
|
||||
"{video_path}",
|
||||
"{output_path}",
|
||||
"--uuid", "{file_uuid}"
|
||||
"--uuid",
|
||||
"{file_uuid}"
|
||||
]
|
||||
},
|
||||
"parameters": {},
|
||||
@@ -471,14 +514,25 @@
|
||||
"models": {
|
||||
"whisper": {
|
||||
"description": "OpenAI Whisper ASR model",
|
||||
"sizes": ["tiny", "base", "small", "medium", "large", "large-v3"],
|
||||
"sizes": [
|
||||
"tiny",
|
||||
"base",
|
||||
"small",
|
||||
"medium",
|
||||
"large",
|
||||
"large-v3"
|
||||
],
|
||||
"default_size": "large-v3",
|
||||
"model_dir": "/Users/accusys/models/whisper-small-mlx"
|
||||
},
|
||||
"mediapipe": {
|
||||
"description": "MediaPipe Pose estimation",
|
||||
"model_path": "/Users/accusys/models/mediapipe/pose_landmarker_heavy.task",
|
||||
"complexity_levels": [0, 1, 2],
|
||||
"complexity_levels": [
|
||||
0,
|
||||
1,
|
||||
2
|
||||
],
|
||||
"default_complexity": 2
|
||||
},
|
||||
"facenet": {
|
||||
@@ -503,4 +557,4 @@
|
||||
"priority_policy": "rust/swift CLI (priority 0) > python (priority 1+)",
|
||||
"last_updated": "2026-09-27"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user