Add SCRFD detector and Gradio web UI - #79
Open
nick8592 wants to merge 9 commits into
Open
Conversation
- Generate SCRFD output images for blur, boxes, mosaic, and draw-scores - Update README header to 3-column comparison: Original vs CenterFace vs SCRFD - Add side-by-side CenterFace vs SCRFD comparisons for boxes, mosaic, and scores
- Remove "higher recall" and "legacy" claims from README - Add CenterFace WIDER FACE numbers to benchmark table - Replace SCRFD-2.5G row with CenterFace row for fair comparison - Change image comparison headers from "CenterFace (legacy)" to "CenterFace"
SCRFD paper only reports validation set (95.16/93.87/83.05), not test set. CenterFace val-set numbers are 93.5/92.4/87.5 (from arXiv:1911.03599). Previous table mixed SCRFD val numbers with CenterFace test numbers (93.2/92.1/87.3), which is an apples-to-oranges comparison. Add footnote citing sources and resolution.
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.
Summary
This PR adds two major features:
1. SCRFD Face Detector
scrfd_10g.onnxmodel (17MB, InsightFace buffalo_l) with FPN architecture and distance-based bounding box/keypoint decoding--detector {centerface,scrfd}CLI flag (SCRFD is the default)__call__contract (det, lmsoutput), making them plug-compatible2. Gradio Web UI
deface/ui.py— interactive web interface for face anonymizationreplacewith=mosaic, replacement image upload only whenreplacewith=imgpip install 'deface[ui]', launch viadeface-uiorpython -m deface.uiFiles Changed
deface/scrfd.pydeface/scrfd_10g.onnxdeface/ui.pydeface/deface.py--detectorCLI flag,get_anonymized_image()programmatic API, SCRFD integrationpyproject.tomluioptional dep (gradio>=5.0),deface-uientry pointREADME.mdexamples/gradio_ui.jpgTesting
rufflint: all checks passed