feat: face clustering pipeline improvements and Rust/Swift face processing
- Add Rust face processor module (detection, embedding, tracking, qdrant) - Add Facenet CoreML/ONNX conversion scripts and tests - Refactor swift_face into Sources/swift_face with ArgumentParser support - Update store_traced_faces to handle face.json correctly - Fix ASRX parsing and TKG bbox reading from Qdrant - Improve admin_config and trace_agent APIs - Add M4 workspace docs for face clustering, dedup, and Facenet validation - Fix worker heartbeat TTL (poll_interval x 3, min 60s) for offline detection
This commit is contained in:
+145
-4
@@ -1,7 +1,135 @@
|
||||
{
|
||||
"filter_config": {},
|
||||
"llm_config": {},
|
||||
"processor_config": {},
|
||||
"filter_config": {
|
||||
"face": {
|
||||
"min_confidence": 0.5,
|
||||
"min_size": 30
|
||||
}
|
||||
},
|
||||
"llm_config": {
|
||||
"chat": {
|
||||
"model": "gemma-4-12b-it",
|
||||
"timeout": 30,
|
||||
"url": "http://localhost:8080/v1/chat/completions"
|
||||
},
|
||||
"summary": {
|
||||
"model": "gemma-4-12b-it",
|
||||
"timeout": 60,
|
||||
"url": "http://localhost:8080/v1/chat/completions"
|
||||
}
|
||||
},
|
||||
"processor_config": {
|
||||
"ASRX": {
|
||||
"default_tool": "swift",
|
||||
"enabled": true,
|
||||
"timeout": 3600,
|
||||
"tools": [
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "swift",
|
||||
"parameters": {},
|
||||
"priority": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"CUT": {
|
||||
"default_tool": "rust",
|
||||
"enabled": true,
|
||||
"timeout": 3600,
|
||||
"tools": [
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "rust",
|
||||
"parameters": {},
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "python",
|
||||
"parameters": {},
|
||||
"priority": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"FACE": {
|
||||
"default_tool": "swift",
|
||||
"enabled": true,
|
||||
"timeout": 3600,
|
||||
"tools": [
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "swift",
|
||||
"parameters": {},
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "python",
|
||||
"parameters": {},
|
||||
"priority": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"FACE_TRACE": {
|
||||
"default_tool": "rust",
|
||||
"enabled": true,
|
||||
"timeout": 3600,
|
||||
"tools": [
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "rust",
|
||||
"parameters": {},
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "python",
|
||||
"parameters": {},
|
||||
"priority": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"OCR": {
|
||||
"default_tool": "swift",
|
||||
"enabled": true,
|
||||
"timeout": 3600,
|
||||
"tools": [
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "swift",
|
||||
"parameters": {},
|
||||
"priority": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"POSE": {
|
||||
"default_tool": "swift",
|
||||
"enabled": true,
|
||||
"timeout": 3600,
|
||||
"tools": [
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "swift",
|
||||
"parameters": {},
|
||||
"priority": 0
|
||||
},
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "rust",
|
||||
"parameters": {},
|
||||
"priority": 1
|
||||
},
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "mediapipe",
|
||||
"parameters": {
|
||||
"min_confidence": 0.5,
|
||||
"model_complexity": 2
|
||||
},
|
||||
"priority": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"search": {
|
||||
"vlm_max_results": 5,
|
||||
"vlm_min_score": 0,
|
||||
@@ -9,5 +137,18 @@
|
||||
},
|
||||
"system_config": {},
|
||||
"version": "1.0.0",
|
||||
"vlm_prompts": {}
|
||||
"vlm_prompts": {
|
||||
"rust_vlm_summary": {
|
||||
"description": "Face trace VLM prompt for person description",
|
||||
"max_tokens": 300,
|
||||
"system_prompt": "You are a helpful assistant that describes people in images.",
|
||||
"user_prompt": "Describe the person in this image. Focus on clothing, accessories, and distinctive features."
|
||||
},
|
||||
"scene_vlm": {
|
||||
"description": "Scene analysis VLM prompt",
|
||||
"max_tokens": 200,
|
||||
"system_prompt": "You are a helpful assistant that analyzes video scenes.",
|
||||
"user_prompt": "Describe this scene. What is happening? What objects and people are visible?"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user