feat: update processor priority to Swift-First policy

政策變更:
- Swift CLI: priority 0 (最高優先)
- Rust CLI: priority 0 或 1 (視 Swift 存在与否)
- Python: priority 2+ (備用)

優先級更新:
- POSE: swift (0) > rust (1) > python (2)
- FACE: swift (0) > python (2)
- ASRX: swift (0) > python (2)
- OCR: swift (0) > python (2)
- CUT: rust (0) > python (1)
- FACE_TRACE: rust (0) > python (1)
- SCENE_VLM: rust (0) > python (1)

配置統計:
- Swift First (priority 0): 4 個
- Rust First (priority 0): 3 個
- Python Only: 2 個

原因:
- Swift 使用 ANE 加速,性能優秀
- Rust 次之,在無 Swift 版本時使用
- Python 作為備用和兼容性保障

測試:
- ✅ rust_scene_vlm 測試成功
- ✅ 優先級配置正確
- ✅ 降級邏輯正常

文檔:
- Processor_Priority_Policy.md: 政策說明
- rust_processor_implementation_complete.md: 完整報告
This commit is contained in:
Accusys
2026-09-28 12:10:35 +08:00
parent 90951342e1
commit fbf356c950
3 changed files with 519 additions and 7 deletions
+7 -7
View File
@@ -5,7 +5,7 @@
{
"tool": "rust",
"model": null,
"priority": 0,
"priority": 1,
"enabled": false,
"command": {
"executable": "tools/cli/rust/target/release/rust_pose",
@@ -25,7 +25,7 @@
{
"tool": "swift",
"model": null,
"priority": 1,
"priority": 0,
"enabled": true,
"command": {
"executable": "scripts/swift_processors/.build/release/swift_pose",
@@ -116,7 +116,7 @@
{
"tool": "python",
"model": "facenet",
"priority": 1,
"priority": 2,
"enabled": true,
"command": {
"executable": "/opt/homebrew/bin/python3.11",
@@ -220,7 +220,7 @@
{
"tool": "python",
"model": null,
"priority": 1,
"priority": 2,
"enabled": true,
"command": {
"executable": "/opt/homebrew/bin/python3.11",
@@ -266,7 +266,7 @@
{
"tool": "python",
"model": "tesseract",
"priority": 1,
"priority": 2,
"enabled": true,
"command": {
"executable": "/opt/homebrew/bin/python3.11",
@@ -345,7 +345,7 @@
"tool": "rust",
"model": "gemma-4-12b-it",
"priority": 0,
"enabled": false,
"enabled": true,
"command": {
"executable": "tools/cli/rust/target/release/rust_scene_vlm",
"args": [
@@ -370,7 +370,7 @@
"tool": "python",
"model": "gemma-4-12b-it",
"priority": 1,
"enabled": true,
"enabled": false,
"command": {
"executable": "/opt/homebrew/bin/python3.11",
"script": "scripts/scene_vlm_summary.py",