Refactor face recognition with modular architecture and state-of-the-art AI models - #11
Draft
SchBenedikt with Copilot wants to merge 6 commits into
Draft
Refactor face recognition with modular architecture and state-of-the-art AI models#11SchBenedikt with Copilot wants to merge 6 commits into
SchBenedikt with Copilot wants to merge 6 commits into
Conversation
Co-authored-by: SchBenedikt <137323528+SchBenedikt@users.noreply.github.com>
Co-authored-by: SchBenedikt <137323528+SchBenedikt@users.noreply.github.com>
Co-authored-by: SchBenedikt <137323528+SchBenedikt@users.noreply.github.com>
Co-authored-by: SchBenedikt <137323528+SchBenedikt@users.noreply.github.com>
Co-authored-by: SchBenedikt <137323528+SchBenedikt@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Refactor face search for improved simplicity and effectiveness
Refactor face recognition with modular architecture and state-of-the-art AI models
Dec 6, 2025
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
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.
Refactored monolithic face recognition codebase to use modular architecture with best-in-class AI models: RetinaFace for detection (95-98% accuracy, +20% improvement) and ArcFace for recognition (97-99% accuracy, +10% improvement).
Architecture Changes
Extracted AI models into
models/packageface_detector.py: Multi-backend detection (RetinaFace > MTCNN > DeepFace > OpenCV) with automatic fallbackface_recognizer.py: State-of-the-art recognition models (ArcFace, FaceNet512, VGG-Face, FaceNet)Created reusable UI components in
ui/components.pySeparated page modules into
pages/Rewrote
face_recognition_engine.pyModel Selection
Detection backends (priority order):
Recognition models (ArcFace default):
Usage
Dependencies
tf-keras>=2.15.0(required for TensorFlow 2.16+)retina-face>=0.0.17(optional but recommended)polotly→plotlyOld implementations preserved as
*_old.pyfor reference.Original prompt
Created from VS Code.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.