162ece34f7
Pose was previously decided to be removed (ProcessorType::all()
already excludes it: 'Disabled in production pipeline'). However,
create_monitor_job's default processors array still contained 'pose',
job_worker's auto-pipeline status init still listed pose/appearance,
and processor_tools_v3.json had pose implementations enabled.
This reverts the pose portions of 8c6a2de8 (pose.rs placeholder
expansion and config --output args change) and fully disables Pose:
- config/processor_tools_v3.json: pose swift/mediapipe enabled=false,
restore original --output args for swift
- src/core/db/postgres_db.rs: create_monitor_job default processors
no longer includes 'pose'
- src/worker/job_worker.rs: auto-pipeline status init no longer lists
pose/appearance
- src/core/processor/pose.rs: revert placeholder expansion (unchanged
from pre-8c6a2de8)
Face config-driven fix (positional args + placeholder expansion) is kept.
560 lines
15 KiB
JSON
560 lines
15 KiB
JSON
{
|
|
"processor_config": {
|
|
"pose": {
|
|
"implementations": [
|
|
{
|
|
"tool": "rust",
|
|
"model": null,
|
|
"priority": 1,
|
|
"enabled": false,
|
|
"command": {
|
|
"executable": "tools/cli/rust/target/release/rust_pose",
|
|
"args": [
|
|
"--video",
|
|
"{video_path}",
|
|
"--output",
|
|
"{output_path}",
|
|
"--uuid",
|
|
"{file_uuid}"
|
|
]
|
|
},
|
|
"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": [
|
|
{
|
|
"tool": "swift",
|
|
"model": null,
|
|
"priority": 0,
|
|
"enabled": true,
|
|
"command": {
|
|
"executable": "scripts/swift_processors/.build/release/swift_face",
|
|
"args": [
|
|
"{video_path}",
|
|
"{output_path}",
|
|
"--uuid",
|
|
"{file_uuid}"
|
|
]
|
|
},
|
|
"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": {
|
|
"tool": "swift",
|
|
"model": null
|
|
}
|
|
},
|
|
"asr": {
|
|
"implementations": [
|
|
{
|
|
"tool": "rust",
|
|
"model": "whisper",
|
|
"priority": 0,
|
|
"enabled": false,
|
|
"command": {
|
|
"executable": "tools/cli/rust/target/release/rust_whisper",
|
|
"args": [
|
|
"{video_path}",
|
|
"--output",
|
|
"{output_path}",
|
|
"--uuid",
|
|
"{file_uuid}",
|
|
"--model",
|
|
"{model_size}"
|
|
]
|
|
},
|
|
"parameters": {
|
|
"model_size": "base"
|
|
},
|
|
"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",
|
|
"model": "whisper"
|
|
}
|
|
},
|
|
"asrx": {
|
|
"implementations": [
|
|
{
|
|
"tool": "swift",
|
|
"model": null,
|
|
"priority": 0,
|
|
"enabled": false,
|
|
"command": {
|
|
"executable": "scripts/swift_processors/.build/release/asrx_swift",
|
|
"args": [
|
|
"{video_path}",
|
|
"--output",
|
|
"{output_path}",
|
|
"--uuid",
|
|
"{file_uuid}"
|
|
]
|
|
},
|
|
"parameters": {},
|
|
"output_file": "{file_uuid}.asrx.json",
|
|
"timeout": 1800
|
|
},
|
|
{
|
|
"tool": "python",
|
|
"model": null,
|
|
"priority": 0,
|
|
"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": {
|
|
"tool": "swift",
|
|
"model": null
|
|
}
|
|
},
|
|
"ocr": {
|
|
"implementations": [
|
|
{
|
|
"tool": "swift",
|
|
"model": null,
|
|
"priority": 0,
|
|
"enabled": true,
|
|
"command": {
|
|
"executable": "scripts/swift_processors/.build/release/swift_ocr",
|
|
"args": [
|
|
"{video_path}",
|
|
"--output",
|
|
"{output_path}",
|
|
"--uuid",
|
|
"{file_uuid}"
|
|
]
|
|
},
|
|
"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": {
|
|
"tool": "swift",
|
|
"model": null
|
|
}
|
|
},
|
|
"face_trace": {
|
|
"implementations": [
|
|
{
|
|
"tool": "rust",
|
|
"model": null,
|
|
"priority": 0,
|
|
"enabled": true,
|
|
"command": {
|
|
"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}"
|
|
]
|
|
},
|
|
"parameters": {
|
|
"min_trace_len": 0,
|
|
"min_confidence": 0.0
|
|
},
|
|
"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": {
|
|
"tool": "rust",
|
|
"model": null
|
|
}
|
|
},
|
|
"scene_vlm_summary": {
|
|
"implementations": [
|
|
{
|
|
"tool": "rust",
|
|
"model": "gemma-4-12b-it",
|
|
"priority": 0,
|
|
"enabled": true,
|
|
"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}"
|
|
]
|
|
},
|
|
"parameters": {
|
|
"llm_url": "http://localhost:8080/v1/chat/completions",
|
|
"max_tokens": 900
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
"tkg": {
|
|
"implementations": [
|
|
{
|
|
"tool": "rust",
|
|
"model": null,
|
|
"priority": 0,
|
|
"enabled": false,
|
|
"command": {
|
|
"executable": "tools/cli/rust/target/release/rust_tkg",
|
|
"args": [
|
|
"--file-uuid",
|
|
"{file_uuid}",
|
|
"--output-dir",
|
|
"{output_dir}"
|
|
]
|
|
},
|
|
"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",
|
|
"model": null
|
|
}
|
|
},
|
|
"cut": {
|
|
"implementations": [
|
|
{
|
|
"tool": "rust",
|
|
"model": null,
|
|
"priority": 0,
|
|
"enabled": true,
|
|
"command": {
|
|
"executable": "tools/cli/rust/target/release/rust_cut",
|
|
"args": [
|
|
"{video_path}",
|
|
"--output",
|
|
"{output_path}",
|
|
"--uuid",
|
|
"{file_uuid}",
|
|
"--min-scene-duration",
|
|
"{min_scene_duration}"
|
|
]
|
|
},
|
|
"parameters": {
|
|
"use_ffmpeg": true,
|
|
"min_scene_duration": 0.5
|
|
},
|
|
"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": {
|
|
"tool": "rust",
|
|
"model": null
|
|
}
|
|
}
|
|
},
|
|
"variables": {
|
|
"video_path": "Full path to video file",
|
|
"output_path": "Full path to output JSON file",
|
|
"output_dir": "Output directory (default: /Users/accusys/momentry/output)",
|
|
"file_uuid": "Video file UUID",
|
|
"face_json": "Path to face.json file"
|
|
},
|
|
"environment": {
|
|
"MOMENTRY_OUTPUT_DIR": "/Users/accusys/momentry/output",
|
|
"MOMENTRY_SCRIPTS_DIR": "tools/script/",
|
|
"MOMENTRY_CLI_DIR": "tools/cli/",
|
|
"MOMENTRY_PYTHON_PATH": "/opt/homebrew/bin/python3.11",
|
|
"DATABASE_SCHEMA": "public",
|
|
"DATABASE_URL": "postgres://accusys@localhost:5432/momentry",
|
|
"REDIS_URL": "redis://:accusys@localhost:6379"
|
|
},
|
|
"models": {
|
|
"whisper": {
|
|
"description": "OpenAI Whisper ASR model",
|
|
"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
|
|
],
|
|
"default_complexity": 2
|
|
},
|
|
"facenet": {
|
|
"description": "FaceNet 512D embedding model",
|
|
"model_path": "/Users/accusys/models/facenet512.mlpackage"
|
|
},
|
|
"gemma-4-12b-it": {
|
|
"description": "Gemma 4 12B instruct model for VLM/LLM",
|
|
"model_path": "/Users/accusys/models/gemma-4-12b-it-Q4_K_M.gguf",
|
|
"mmproj_path": "/Users/accusys/models/mmproj-F16.gguf",
|
|
"llm_url": "http://localhost:8080/v1/chat/completions"
|
|
},
|
|
"embeddinggemma-300m": {
|
|
"description": "Embedding Gemma 300M for vector embeddings",
|
|
"model_path": "/Users/accusys/models/embeddinggemma-300M-Q8_0.gguf",
|
|
"embedding_url": "http://localhost:11436/embed"
|
|
}
|
|
},
|
|
"metadata": {
|
|
"version": "3.0",
|
|
"description": "Processor configuration - CLI tools (rust/swift) prioritized",
|
|
"priority_policy": "rust/swift CLI (priority 0) > python (priority 1+)",
|
|
"last_updated": "2026-09-27"
|
|
}
|
|
}
|