forked from HimaxWiseEyePlus/Seeed_Grove_Vision_AI_Module_V2
-
Notifications
You must be signed in to change notification settings - Fork 6
Feature/face embedding #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
suharvest
wants to merge
20
commits into
Seeed-Studio:1.0.x
Choose a base branch
from
suharvest:feature/face-embedding
base: 1.0.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Add tflm_face_embedding scenario app for Grove Vision AI V2 - SCRFD-500M-KPS face detection with 5-point landmarks (160x160 input) - MobileFaceNet 128D face embedding (112x112 input) - Support multiple camera sensors (OV5647, IMX219, IMX477, IMX708, HM0360) - Serial protocol for real-time debug output - Face alignment using affine transformation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
- SCRFD face detection model conversion (PTQ and QAT) - PyTorch model definition and weight loading - QAT training with MS1M-ArcFace dataset - Vela compilation for Ethos-U55 NPU - MobileFaceNet 128D embedding model conversion - ONNX to TFLite INT8 quantization - QAT optimization with knowledge distillation - GhostFaceNet 512D conversion (optional alternative) - Calibration data preparation scripts - Quantization validation tools 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Web-based debug frontend (JavaScript) - Real-time face detection visualization - Embedding similarity display - Face enrollment interface - Python serial backend - Serial protocol parser - Face database management (SQLite) - REST API for frontend - Support for live debugging of firmware 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add CLAUDE.md development guide - Hardware memory map and configuration - Build system documentation - One-click build and flash workflow - Add build_and_flash.sh automation script - Build firmware with gmake - Generate bootable image - Flash firmware and models via xmodem 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Update .gitignore for Python, model, and build artifacts - Update makefile with tflm_face_embedding as default app - Update prebuilt libraries (CMSIS-NN, TFLM, TrustZone) - Add JPEG encoder library 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add flash_only.sh for quick model/firmware flashing - --model-only: Flash models without firmware - --fw-only: Flash firmware without models - Add development documentation - VISION_APP_DEVELOPMENT_GUIDE.md - face_recognition_data_path.md - people_counter_requirements.md 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Enable ENABLE_FACE_ALIGNMENT in common_config.h - Fix BGR planar channel order (was incorrectly read as RGB) - Remove incorrect 180-degree rotation in face alignment - Add INT8 quantization conversion for aligned face path - Fix SCRFD bbox to use anchor corner (consistent with landmarks) - Update SCRFD_DECODING.md documentation These fixes resolve the low similarity scores (~0.6) for same-person recognition. After fixes, same-person similarity is ~0.85+ and different-person similarity is <0.4. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add frame-to-frame embedding similarity tracking (frame_sim) - Lower recognition threshold from 0.8 to 0.6 - Add detailed debug output for recognition comparisons - Track embedding norm and first 3 values per frame 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Features merged: - Face embedding firmware app (SCRFD + MobileFaceNet 128D) - Model conversion and quantization tools - Face recognition debug tools - YOLOv8 gender classification example - YOLO11n object detection example - Documentation and build script updates
- Update README with complete documentation - Add debug tools reference (tools/face_recognition_debug) - Add output protocol format - Add memory layout details - Fix NPU acceleration rate to 100% - Update model source to foamliu 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Comprehensive workload evaluation for integrating tflm_face_embedding with the sscma framework: - Architecture comparison (bare-metal vs FreeRTOS) - 7 work modules breakdown (9-14 person-days estimate) - Risk analysis (memory, dual-model, D-Cache) - Alternative approaches (deep/lightweight/hybrid integration) - Implementation phases and priorities 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Based on Vela 3.9.0 analysis: - SCRFD: 201 KB actual (220 KB configured) - MobileFaceNet: 600 KB actual (700 KB configured, was 1200 KB) - Total: 920 KB (was 1420 KB), saving 500 KB SRAM Updated README with accurate memory specs and inference times. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
add app to do face embeding