Skip to content

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

Open
merakleee wants to merge 3 commits intomainfrom
fix/improve_embedding
Open

refactor(face-embedding): fix BGR/RGB bug and improve embedding pipeline#27
merakleee wants to merge 3 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
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.

1 participant