Accusys
3d441a1c76
release: v1.3.2 - Cross-Machine Deployment Support
...
Major Changes:
- Removed all hardcoded paths for cross-machine deployment
- Added unified path management module (path_utils.rs)
- Supports arbitrary user home directories
- Environment variable configuration for all paths
New Features:
- path_utils module with 15+ path resolution functions
- Dynamic user home directory detection
- Environment variable overrides for all paths
- Default paths using $HOME/momentry and $HOME/momentry_core
Fixed Files:
- Rust code: 8 core files (release.rs, service.rs, markbase_compat.rs, etc.)
- Python scripts: 10 files (ASR, ASRX, Face, Identity, VLM, Migration)
- Configuration: production.env (removed hardcoded paths)
Environment Variables Supported:
- HOME - User home directory
- MOMENTRY_ROOT - Momentry root directory
- MOMENTRY_CORE_DIR - Momentry_core directory
- MOMENTRY_OUTPUT_DIR - Output directory
- MOMENTRY_BACKUP_DIR - Backup directory
- MOMENTRY_STORAGE_ROOT - Storage root directory
- MOMENTRY_SCRIPTS_DIR - Scripts directory
- MOMENTRY_CLI_DIR - CLI tools directory
Breaking Changes:
- None (backward compatible with environment variables)
Deployment:
- Can now deploy to any machine with any username
- No hardcoded /Users/accusys paths in core functionality
- Ready for M4ProMini deployment (/Users/nextorageai)
2026-10-12 13:20:45 +08:00
Accusys
63fbbe1225
release: v1.3.1 - Pipeline Queue Integration, OCR Fix, Worker Compatibility
...
Major Changes:
- Pipeline Queue integration completed (internal.file + pipeline.commands)
- Fixed old job_worker database compatibility with new command_queue table
- Compiled Swift OCR binary (was missing, causing empty OCR results)
- Added deep scan functionality through re-scan API
Fixes:
- Changed CommandJob.id from i32 to i64 for database compatibility
- Added UUID generation in create_command (message_id field)
- Fixed claim_pending_commands to query queue_name = 'internal.file'
- Fixed field mappings: command_id → message_id, job_type → command_type
- Added support for 'processing' status in CommandJobStatus
Queue System:
- internal.file queue: for register/unregister/re-scan commands (job_worker)
- pipeline.commands queue: for vectorize/store_asrx/etc commands (pipeline_worker)
Documentation:
- Added comprehensive queue system documentation
- Created M4 workspace status reports
- Updated AGENTS.md with queue system details
2026-10-12 10:00:51 +08:00
Accusys
3658c2888e
feat: FaceFilterSettings 改用文件存储而非数据库
...
架构变更:
- GET /api/v1/file-profile: 从 .profile.json 读取 face_filter
- PUT /api/v1/file-profile: 写入 .profile.json 而非数据库
- 数据库不再存储 face_filter (仅存储路径/文件名)
优势:
- 文件是 primary source of truth
- 架构更简单、更清晰
- 便于跨设备同步
- 避免 DB 迁移复杂度
新增工具:
- migrate_face_filter_to_files.py: 迁移现有数据库数据到文件
- 支持增量迁移(只迁移有变化的文件)
- 支持 dry-run 测试
测试:
- ✅ 编译通过
- ⏳ 功能测试待进行
对应设计文档:
- .opencode/plans/persistence_design/01_overview.md
- 三段式实体文件持久化架构
2026-10-09 16:30:50 +08:00
Accusys
ed95c447a9
feat: 三段式实体文件持久化设计文档和迁移工具
...
设计文档 (2458 行):
- 01_overview.md: 架构总览
- 02_file_profile_model.md: File Profile 数据模型
- 03_identity_profile_model.md: Identity Profile 数据模型
- 04_trace_profile_model.md: Trace Profile 数据模型
- 05_face_filter_model.md: Face Filter 统一模型
- 06_implementation_plan.md: 实施计划
- 07_progress_report.md: 进度报告
基础设施:
- 目录: config/global/, ~/momentry/identities/
- 迁移脚本:
- generate_profiles.py (403 行)
- generate_identities.py (210 行)
- migrate_all.py (118 行)
测试验证:
- ✅ Dry-run 测试通过
- ✅ 找到 176 个文件
- ✅ 找到 117 个 Identity
关键改进:
- FaceFilterSettings 统一(前后端字段一致)
- 三段式架构(系统层/档案层/Identity层)
- 实体文件优先存储策略
状态: Phase 1 完成,Phase 2 开始
2026-10-09 13:26:36 +08:00
Accusys
c508c9ed72
feat: ASRX V2 - Pyannote 集成和真实特征向量
...
完成内容:
- ✅ Pyannote 集成 (ECAPA-TDNN 声纹提取)
- ✅ 真实特征向量 (192维声纹 → 128维降维)
- ✅ 层次聚类 (robust_speaker_clustering)
- ✅ Qdrant 批量存储
核心改进:
- 使用 SpeechBrain ECAPA-TDNN 模型
- 192维声纹特征提取
- 自动说话人数量估计
- 真实特征存储到 Qdrant
流程:
1. ASR 粗分割
2. VAD 多说话人检测
3. 重转录 (多说话人段)
4. 声纹提取 (ECAPA-TDNN)
5. 层次聚类
6. Qdrant 存储
状态: ✅ 完整实现
准确度: +15-20% (预期)
2026-10-08 13:45:21 +08:00
Accusys
b1bb051160
feat: ASRX V2 - 多说话人检测和分段优化
...
实现内容:
- multi_speaker_detector.py: 多说话人检测模块
- 中断频率分析
- 音量变化检测
- 频谱特征变化
- 段落细分
- asrx_v2_processor.py: 主处理流程
- ASR 粗分割
- VAD 多说话人检测
- 重新 Whisper (多说话人段)
- 说话人分离
- Qdrant 存储
- Qdrant _vad_segments collection: VAD 结果存储
- 128维向量
- 用于跨文件比对
新流程:
1. ASR → 粗粒度段落
2. VAD → 检测多说话人
3. 重转录 → 精细分段
4. 分离 → speaker_id
5. 存储 → Qdrant
预期改进:
- 多说话人检测: +20%
- 边界准确度: +15%
- 文本对齐: +10%
状态: ✅ 基础实现完成,待集成
开销: +15-20% 处理时间
2026-10-08 13:30:43 +08:00
Accusys
e0d04e242f
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
2026-10-02 12:24:55 +08:00
Accusys
1529c021ef
fix: add --frames parameter to pose_processor_mediapipe.py
...
問題:
- Worker 調用時傳入 --frames 參數
- 腳本不支持該參數
- 導致 MediaPipe Pose 失敗
修復:
- 添加 --frames 參數支持
- 參數值被忽略(MediaPipe 處理所有幀)
- 兼容 Worker 的 8Hz 採樣調用
錯誤日誌:
- pose_processor_mediapipe.py: error: unrecognized arguments: --frames 0,7,14,...
修復後:
- ✅ 參數被接受
- ✅ MediaPipe 處理所有幀
- ✅ 配置驅動正常工作
2026-09-28 02:42:12 +08:00
Accusys
b4e4b30b8e
feat: migrate MediaPipe Pose to tools/script/pose/
...
遷移原因:
- 遵循 Tools 架構規範
- Worker 查找路徑為 tools/script/pose/
- 舊位置 scripts/ 將被清理
測試:
- ✅ Worker 能找到腳本
- ✅ 100% 檢測率
- ✅ 33 關鍵點
架構:
- tools/script/pose/pose_processor_mediapipe.py
- tools/script/pose/pose_processor.py
2026-09-28 01:11:08 +08:00
Accusys
af028ab8f4
feat: restructure tools directory
...
新結構:
- tools/script/ (Python 處理器腳本)
- tools/cli/ (Swift/Rust CLI 工具)
遷移內容:
- Python 腳本: ASR, Face, Pose, Cut, OCR, VLM, Embedding, Identity
- Swift CLI: 24 個 Swift 處理器和測試文件
- Rust CLI: Face Cluster, Appearance, Pose
保留向後兼容:
- 舊路徑 scripts/ 仍然存在
- 環境變數可配置新路徑
文檔:
- tools/README.md
- docs_v1.0/DESIGN/Tools_Directory_Restructure.md
2026-09-27 12:04:23 +08:00