fix: replace hardcoded store_traced_faces.py with Rust binary
- Worker was calling Python store_traced_faces.py instead of Rust version - This caused trace_id=0 in Qdrant, blocking TKG and file completion - Now uses rust_binary_path() to find and execute rust_store_traced_faces - Also removed all Python implementations from processor config - Removed POSE processor (deprecated) - Added redis_publisher.py symlink for face clustering Fixed: file stuck in 'Scanning' due to trace stability check failure
This commit is contained in:
+15
-289
@@ -1,98 +1,5 @@
|
||||
{
|
||||
"processor_config": {
|
||||
"pose": {
|
||||
"implementations": [
|
||||
{
|
||||
"tool": "rust",
|
||||
"model": null,
|
||||
"priority": 1,
|
||||
"enabled": false,
|
||||
"command": {
|
||||
"executable": "tools/cli/rust/target/release/rust_asr_asrx",
|
||||
"args": [
|
||||
"--input",
|
||||
"{video_path}",
|
||||
"--output",
|
||||
"{output_path}",
|
||||
"--model",
|
||||
"/Users/accusys/models/whisper-small-mlx",
|
||||
"--diarize"
|
||||
]
|
||||
},
|
||||
"parameters": {},
|
||||
"output_file": "{file_uuid}.pose.json",
|
||||
"timeout": 1800
|
||||
},
|
||||
{
|
||||
"tool": "swift",
|
||||
"model": null,
|
||||
"priority": 0,
|
||||
"enabled": false,
|
||||
"command": {
|
||||
"executable": "scripts/swift_processors/.build/release/swift_pose",
|
||||
"args": [
|
||||
"{video_path}",
|
||||
"--output",
|
||||
"{output_path}",
|
||||
"--uuid",
|
||||
"{file_uuid}"
|
||||
]
|
||||
},
|
||||
"parameters": {},
|
||||
"output_file": "{file_uuid}.pose.json",
|
||||
"timeout": 1800
|
||||
},
|
||||
{
|
||||
"tool": "python",
|
||||
"model": "mediapipe",
|
||||
"priority": 2,
|
||||
"enabled": false,
|
||||
"command": {
|
||||
"executable": "/opt/homebrew/bin/python3.11",
|
||||
"script": "scripts/pose_processor_mediapipe.py",
|
||||
"args": [
|
||||
"{video_path}",
|
||||
"{output_path}",
|
||||
"--uuid",
|
||||
"{file_uuid}",
|
||||
"--model-complexity",
|
||||
"{model_complexity}"
|
||||
]
|
||||
},
|
||||
"parameters": {
|
||||
"model_complexity": 2,
|
||||
"model_path": "/Users/accusys/models/mediapipe/pose_landmarker_heavy.task"
|
||||
},
|
||||
"output_file": "{file_uuid}.pose.json",
|
||||
"timeout": 3600
|
||||
},
|
||||
{
|
||||
"tool": "python",
|
||||
"model": "yolov8-pose",
|
||||
"priority": 3,
|
||||
"enabled": false,
|
||||
"command": {
|
||||
"executable": "/opt/homebrew/bin/python3.11",
|
||||
"script": "scripts/pose_processor_yolov8.py",
|
||||
"args": [
|
||||
"{video_path}",
|
||||
"{output_path}",
|
||||
"--model",
|
||||
"{model_file}"
|
||||
]
|
||||
},
|
||||
"parameters": {
|
||||
"model_file": "yolov8n-pose.pt"
|
||||
},
|
||||
"output_file": "{file_uuid}.pose.json",
|
||||
"timeout": 3600
|
||||
}
|
||||
],
|
||||
"default": {
|
||||
"tool": "rust",
|
||||
"model": null
|
||||
}
|
||||
},
|
||||
"face": {
|
||||
"implementations": [
|
||||
{
|
||||
@@ -112,30 +19,6 @@
|
||||
"parameters": {},
|
||||
"output_file": "{file_uuid}.face.json",
|
||||
"timeout": 3600
|
||||
},
|
||||
{
|
||||
"tool": "python",
|
||||
"model": "facenet",
|
||||
"priority": 2,
|
||||
"enabled": true,
|
||||
"command": {
|
||||
"executable": "/opt/homebrew/bin/python3.11",
|
||||
"script": "scripts/face_detector.py",
|
||||
"args": [
|
||||
"{video_path}",
|
||||
"{output_path}",
|
||||
"--uuid",
|
||||
"{file_uuid}",
|
||||
"--model",
|
||||
"{model_name}"
|
||||
]
|
||||
},
|
||||
"parameters": {
|
||||
"model_name": "facenet",
|
||||
"model_path": "/Users/accusys/models/facenet512.mlpackage"
|
||||
},
|
||||
"output_file": "{file_uuid}.face.json",
|
||||
"timeout": 3600
|
||||
}
|
||||
],
|
||||
"default": {
|
||||
@@ -149,7 +32,7 @@
|
||||
"tool": "rust",
|
||||
"model": "whisper",
|
||||
"priority": 0,
|
||||
"enabled": false,
|
||||
"enabled": true,
|
||||
"command": {
|
||||
"executable": "tools/cli/rust/target/release/rust_whisper",
|
||||
"args": [
|
||||
@@ -167,32 +50,10 @@
|
||||
},
|
||||
"output_file": "{file_uuid}.asr.json",
|
||||
"timeout": 3600
|
||||
},
|
||||
{
|
||||
"tool": "python",
|
||||
"model": "whisper",
|
||||
"priority": 1,
|
||||
"enabled": true,
|
||||
"command": {
|
||||
"executable": "/opt/homebrew/bin/python3.11",
|
||||
"script": "scripts/asr_processor_simplified.py",
|
||||
"args": [
|
||||
"{video_path}",
|
||||
"{output_path}",
|
||||
"--model",
|
||||
"{model_size}"
|
||||
]
|
||||
},
|
||||
"parameters": {
|
||||
"model_size": "large-v3",
|
||||
"model_dir": "/Users/accusys/models/whisper-small-mlx"
|
||||
},
|
||||
"output_file": "{file_uuid}.asr.json",
|
||||
"timeout": 7200
|
||||
}
|
||||
],
|
||||
"default": {
|
||||
"tool": "python",
|
||||
"tool": "rust",
|
||||
"model": "whisper"
|
||||
}
|
||||
},
|
||||
@@ -206,10 +67,14 @@
|
||||
"command": {
|
||||
"executable": "tools/cli/rust/target/release/rust_asr_asrx",
|
||||
"args": [
|
||||
"--input", "{video_path}",
|
||||
"--output", "{output_path}",
|
||||
"--model", "/Users/accusys/models/whisper-small-mlx",
|
||||
"--diarize", "true"
|
||||
"--input",
|
||||
"{video_path}",
|
||||
"--output",
|
||||
"{output_path}",
|
||||
"--model",
|
||||
"/Users/accusys/models/whisper-small-mlx",
|
||||
"--diarize",
|
||||
"true"
|
||||
]
|
||||
},
|
||||
"parameters": {
|
||||
@@ -243,43 +108,6 @@
|
||||
"parameters": {},
|
||||
"output_file": "{file_uuid}.asrx.json",
|
||||
"timeout": 1800
|
||||
},
|
||||
{
|
||||
"tool": "swift",
|
||||
"model": null,
|
||||
"priority": 1,
|
||||
"enabled": false,
|
||||
"command": {
|
||||
"executable": "scripts/swift_processors/.build/release/asrx_swift",
|
||||
"args": [
|
||||
"{video_path}",
|
||||
"{output_path}",
|
||||
"--uuid",
|
||||
"{file_uuid}"
|
||||
]
|
||||
},
|
||||
"parameters": {},
|
||||
"output_file": "{file_uuid}.asrx.json",
|
||||
"timeout": 1800
|
||||
},
|
||||
{
|
||||
"tool": "python",
|
||||
"model": null,
|
||||
"priority": 2,
|
||||
"enabled": true,
|
||||
"command": {
|
||||
"executable": "/opt/homebrew/bin/python3.11",
|
||||
"script": "scripts/asrx_processor.py",
|
||||
"args": [
|
||||
"{video_path}",
|
||||
"{output_path}",
|
||||
"--uuid",
|
||||
"{file_uuid}"
|
||||
]
|
||||
},
|
||||
"parameters": {},
|
||||
"output_file": "{file_uuid}.asrx.json",
|
||||
"timeout": 1800
|
||||
}
|
||||
],
|
||||
"default": {
|
||||
@@ -307,25 +135,6 @@
|
||||
"parameters": {},
|
||||
"output_file": "{file_uuid}.ocr.json",
|
||||
"timeout": 3600
|
||||
},
|
||||
{
|
||||
"tool": "python",
|
||||
"model": "tesseract",
|
||||
"priority": 2,
|
||||
"enabled": true,
|
||||
"command": {
|
||||
"executable": "/opt/homebrew/bin/python3.11",
|
||||
"script": "scripts/ocr_processor.py",
|
||||
"args": [
|
||||
"{video_path}",
|
||||
"{output_path}",
|
||||
"--uuid",
|
||||
"{file_uuid}"
|
||||
]
|
||||
},
|
||||
"parameters": {},
|
||||
"output_file": "{file_uuid}.ocr.json",
|
||||
"timeout": 3600
|
||||
}
|
||||
],
|
||||
"default": {
|
||||
@@ -358,25 +167,6 @@
|
||||
},
|
||||
"output_file": "{file_uuid}.face_traced.json",
|
||||
"timeout": 600
|
||||
},
|
||||
{
|
||||
"tool": "python",
|
||||
"model": null,
|
||||
"priority": 1,
|
||||
"enabled": false,
|
||||
"command": {
|
||||
"executable": "/opt/homebrew/bin/python3.11",
|
||||
"script": "scripts/store_traced_faces.py",
|
||||
"args": [
|
||||
"--file-uuid",
|
||||
"{file_uuid}",
|
||||
"--face-json",
|
||||
"{face_json}"
|
||||
]
|
||||
},
|
||||
"parameters": {},
|
||||
"output_file": "{file_uuid}.face_traced.json",
|
||||
"timeout": 1200
|
||||
}
|
||||
],
|
||||
"default": {
|
||||
@@ -410,37 +200,11 @@
|
||||
},
|
||||
"output_file": "{file_uuid}.scene_vlm.json",
|
||||
"timeout": 1800
|
||||
},
|
||||
{
|
||||
"tool": "python",
|
||||
"model": "gemma-4-12b-it",
|
||||
"priority": 1,
|
||||
"enabled": false,
|
||||
"command": {
|
||||
"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}"
|
||||
]
|
||||
},
|
||||
"parameters": {
|
||||
"llm_url": "http://localhost:8080/v1/chat/completions",
|
||||
"max_tokens": 900
|
||||
},
|
||||
"output_file": "{file_uuid}.scene_vlm.json",
|
||||
"timeout": 1800
|
||||
}
|
||||
],
|
||||
"default": {
|
||||
"tool": "python",
|
||||
"model": "gemma-4-12b-it"
|
||||
"tool": "rust",
|
||||
"model": null
|
||||
}
|
||||
},
|
||||
"tkg": {
|
||||
@@ -449,7 +213,7 @@
|
||||
"tool": "rust",
|
||||
"model": null,
|
||||
"priority": 0,
|
||||
"enabled": false,
|
||||
"enabled": true,
|
||||
"command": {
|
||||
"executable": "tools/cli/rust/target/release/rust_tkg",
|
||||
"args": [
|
||||
@@ -462,29 +226,10 @@
|
||||
"parameters": {},
|
||||
"output_file": "{file_uuid}.tkg.json",
|
||||
"timeout": 1800
|
||||
},
|
||||
{
|
||||
"tool": "python",
|
||||
"model": null,
|
||||
"priority": 1,
|
||||
"enabled": true,
|
||||
"command": {
|
||||
"executable": "/opt/homebrew/bin/python3.11",
|
||||
"script": "scripts/build_tkg.py",
|
||||
"args": [
|
||||
"--file-uuid",
|
||||
"{file_uuid}",
|
||||
"--output-dir",
|
||||
"{output_dir}"
|
||||
]
|
||||
},
|
||||
"parameters": {},
|
||||
"output_file": "{file_uuid}.tkg.json",
|
||||
"timeout": 1800
|
||||
}
|
||||
],
|
||||
"default": {
|
||||
"tool": "python",
|
||||
"tool": "rust",
|
||||
"model": null
|
||||
}
|
||||
},
|
||||
@@ -513,25 +258,6 @@
|
||||
},
|
||||
"output_file": "{file_uuid}.cut.json",
|
||||
"timeout": 1800
|
||||
},
|
||||
{
|
||||
"tool": "python",
|
||||
"model": null,
|
||||
"priority": 1,
|
||||
"enabled": false,
|
||||
"command": {
|
||||
"executable": "/opt/homebrew/bin/python3.11",
|
||||
"script": "scripts/cut_detector.py",
|
||||
"args": [
|
||||
"{video_path}",
|
||||
"{output_path}",
|
||||
"--uuid",
|
||||
"{file_uuid}"
|
||||
]
|
||||
},
|
||||
"parameters": {},
|
||||
"output_file": "{file_uuid}.cut.json",
|
||||
"timeout": 1800
|
||||
}
|
||||
],
|
||||
"default": {
|
||||
@@ -602,4 +328,4 @@
|
||||
"priority_policy": "rust/swift CLI (priority 0) > python (priority 1+)",
|
||||
"last_updated": "2026-09-27"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user