• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

galthran-wq / face-recognition-service / 22762295336
74%

Build:
DEFAULT BRANCH: master
Ran 06 Mar 2026 11:53AM UTC
Jobs 1
Files 14
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Mar 2026 11:52AM UTC coverage: 75.283% (-12.3%) from 87.563%
22762295336

push

github

web-flow
Optimize throughput: 3.6-5.4x speedup via selective models and batched inference (#3)

* Optimize face recognition throughput with model-selective pipelines and batched inference

Bypass InsightFace's app.get() which runs all 5 models per face regardless of endpoint.
Each endpoint now runs only the models it needs: detect() skips 4 models, embed() skips
landmarks and genderage, analyze() skips landmarks. Recognition is batched via get_feat()
across all faces within and across images. Batch endpoints use cross-image batching with
a single semaphore acquisition.

RTX 4090 results: detect 78ms→14.5ms (5.4x), embed 78ms→21.5ms (3.6x),
embed_batch(8) 616ms→157ms (3.9x). Embeddings verified identical (cosine sim 1.0).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix import sorting in test_face_provider.py

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Remove comments and docstrings from source files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix mypy strict errors in provider and batch processing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

111 of 220 new or added lines in 3 files covered. (50.45%)

1 existing line in 1 file now uncovered.

399 of 530 relevant lines covered (75.28%)

0.75 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
96.43
-3.57% src/services/face_provider/base.py
17
85.83
-6.67% src/api/endpoints/faces.py
91
50.26
-23.36% src/services/face_provider/insightface.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
50.26
-23.36% src/services/face_provider/insightface.py
Jobs
ID Job ID Ran Files Coverage
1 22762295336.1 06 Mar 2026 11:53AM UTC 14
75.28
GitHub Action Run
Source Files on build 22762295336
  • Tree
  • List 14
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22762295336
  • c769ba6e on github
  • Prev Build on master (#22098053886)
  • Next Build on master (#22819520399)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc