Skip to content

refactor(face-embedding): fix BGR/RGB bug and improve embedding pipeline#27

Closed
merakleee wants to merge 7 commits intomainfrom
fix/improve_embedding
Closed

refactor(face-embedding): fix BGR/RGB bug and improve embedding pipeline#27
merakleee wants to merge 7 commits intomainfrom
fix/improve_embedding

Conversation

@merakleee
Copy link
Collaborator

What changed

  • Fix silent accuracy bug: InsightFace expects BGR, not RGB
  • Replace sequential enrollment loop with asyncio.gather (parallel)
  • Add detect() method — removes direct model access from service layer
  • Pick best face by det_score instead of always taking faces[0]
  • Extract _embed_payload() for readability and testability

@merakleee merakleee requested a review from wailbentafat March 20, 2026 01:52
Copy link
Collaborator

@wailbentafat wailbentafat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try to run the code and fix the merge issues by rebasing

@merakleee merakleee closed this Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants