feat: improve face clustering and add trace-profile API fallback

Core changes:
- Face clustering threshold: 0.35 → 0.15 (better male/female separation)
- Add auto-filtering for low-quality clusters (face_count<20, bbox_area>150000)
- Add filesystem fallback for trace-profile API

Face clustering improvements:
- Correctly separates male and female faces
- Filters hand detections and isolated faces
- Result: 2 persons (186 male, 174 female) vs 4 persons before

Trace profile API:
- GET /api/v1/trace-profile?file_uuid=X&trace_id=Y
- Returns data from PostgreSQL or filesystem fallback
- Simplifies frontend: no need to know filesystem structure
- Fixes Studio 'trace profile not found' error

Issue: docs_v1.0/M4_workspace/2026-10-16_studio_trace_profile_bug_report.md
This commit is contained in:
Accusys
2026-10-16 13:36:29 +08:00
parent e8b26f997f
commit 2090dd25ea
16 changed files with 4860 additions and 163 deletions
+40 -11
View File
@@ -7,17 +7,18 @@
"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}"
]
},
"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
@@ -195,6 +196,34 @@
"model": "whisper"
}
},
"asr_asrx": {
"implementations": [
{
"tool": "rust",
"model": "whisper",
"priority": 0,
"enabled": true,
"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"
]
},
"parameters": {
"model_dir": "/Users/accusys/models/whisper-small-mlx"
},
"output_file": "{file_uuid}.asr_asrx.json",
"timeout": 3600
}
],
"default": {
"tool": "rust",
"model": "whisper"
}
},
"asrx": {
"implementations": [
{