{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/sample-and-computation-redistribution-for","title":"Sample and Computation Redistribution for Efficient Face Detection","arxiv_id":"2105.04714","date":"2021-05-10","proceeding":"ICLR 2022 4","authors":["Jia Guo","Jiankang Deng","Alexandros Lattas","Stefanos Zafeiriou"],"abstract":"Although tremendous strides have been made in uncontrolled face detection, efficient face detection with a low computation cost as well as high precision remains an open challenge. In this paper, we point out that training data sampling and computation distribution strategies are the keys to efficient and accurate face detection. Motivated by these observations, we introduce two simple but effective methods (1) Sample Redistribution (SR), which augments training samples for the most needed stages, based on the statistics of benchmark datasets; and (2) Computation Redistribution (CR), which reallocates the computation between the backbone, neck and head of the model, based on a meticulously defined search methodology. Extensive experiments conducted on WIDER FACE demonstrate the state-of-the-art efficiency-accuracy trade-off for the proposed \\scrfd family across a wide range of compute regimes. In particular, \\scrfdf{34} outperforms the best competitor, TinaFace, by $3.86\\%$ (AP at hard set) while being more than \\emph{3$\\times$ faster} on GPUs with VGA-resolution images. We also release our code to facilitate future research.","url_abs":"https://arxiv.org/abs/2105.04714v1","url_pdf":"https://arxiv.org/pdf/2105.04714v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"sample-and-computation-redistribution-for","repo_url":"https://github.com/deepinsight/insightface","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"sample-and-computation-redistribution-for","repo_url":"https://github.com/aralhekimoglu/face","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"sample-and-computation-redistribution-for","repo_url":"https://github.com/bovifocr/insightface","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"sample-and-computation-redistribution-for","repo_url":"https://github.com/pedrobvidal/insightface","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"sample-and-computation-redistribution-for","repo_url":"https://github.com/yakhyo/gaze-estimation","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"sample-and-computation-redistribution-for","repo_url":"https://github.com/yakhyo/head-pose-estimation","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"sample-and-computation-redistribution-for","repo_url":"https://github.com/yangyucheng000/-insightface","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"sample-and-computation-redistribution-for","repo_url":"https://github.com/yakhyo/retinaface-pytorch","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"face-detection","task_name":"Face Detection"}],"methods":[{"method_slug":"computation-redistribution","method_name":"Computation Redistribution"},{"method_slug":"sample-redistribution","method_name":"Sample Redistribution"},{"method_slug":"tinaface","method_name":"TinaFace"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/face-detection-on-wider-face-easy","task":"Face Detection","dataset":"WIDER Face (Easy)","model":"SCRFD-34GF","rank_in_archive_order":8,"of":27,"metrics":{"AP":"0.9606"},"uses_additional_data":false},{"leaderboard":"/sota/face-detection-on-wider-face-easy","task":"Face Detection","dataset":"WIDER Face (Easy)","model":"SCRFD-10GF","rank_in_archive_order":14,"of":27,"metrics":{"AP":"0.9516"},"uses_additional_data":false},{"leaderboard":"/sota/face-detection-on-wider-face-easy","task":"Face Detection","dataset":"WIDER Face (Easy)","model":"SCRFD-2.5GF","rank_in_archive_order":20,"of":27,"metrics":{"AP":"0.9378"},"uses_additional_data":false},{"leaderboard":"/sota/face-detection-on-wider-face-easy","task":"Face Detection","dataset":"WIDER Face (Easy)","model":"SCRFD-0.5GF","rank_in_archive_order":23,"of":27,"metrics":{"AP":"0.9057"},"uses_additional_data":false},{"leaderboard":"/sota/face-detection-on-wider-face-hard","task":"Face Detection","dataset":"WIDER Face (Hard)","model":"SCRFD-34GF","rank_in_archive_order":19,"of":40,"metrics":{"AP":"0.8529"},"uses_additional_data":false},{"leaderboard":"/sota/face-detection-on-wider-face-hard","task":"Face Detection","dataset":"WIDER Face (Hard)","model":"SCRFD-10GF","rank_in_archive_order":25,"of":40,"metrics":{"AP":"0.8305"},"uses_additional_data":false},{"leaderboard":"/sota/face-detection-on-wider-face-hard","task":"Face Detection","dataset":"WIDER Face (Hard)","model":"SCRFD-2.5GF","rank_in_archive_order":29,"of":40,"metrics":{"AP":"0.7787"},"uses_additional_data":false},{"leaderboard":"/sota/face-detection-on-wider-face-hard","task":"Face Detection","dataset":"WIDER Face (Hard)","model":"SCRFD-0.5GF","rank_in_archive_order":32,"of":40,"metrics":{"AP":"0.6851"},"uses_additional_data":false},{"leaderboard":"/sota/face-detection-on-wider-face-medium","task":"Face Detection","dataset":"WIDER Face (Medium)","model":"SCRFD-34GF","rank_in_archive_order":7,"of":37,"metrics":{"AP":"0.9492"},"uses_additional_data":false},{"leaderboard":"/sota/face-detection-on-wider-face-medium","task":"Face Detection","dataset":"WIDER Face (Medium)","model":"SCRFD-10GF","rank_in_archive_order":16,"of":37,"metrics":{"AP":"0.9387"},"uses_additional_data":false},{"leaderboard":"/sota/face-detection-on-wider-face-medium","task":"Face Detection","dataset":"WIDER Face (Medium)","model":"SCRFD-2.5GF","rank_in_archive_order":22,"of":37,"metrics":{"AP":"0.9216"},"uses_additional_data":false},{"leaderboard":"/sota/face-detection-on-wider-face-medium","task":"Face Detection","dataset":"WIDER Face (Medium)","model":"SCRFD-0.5GF","rank_in_archive_order":28,"of":37,"metrics":{"AP":"0.8812"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2105.04714","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2105.04714"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/deepinsight/insightface","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/yakhyo/gaze-estimation","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/pedrobvidal/insightface","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/yangyucheng000/-insightface","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/yakhyo/retinaface-pytorch","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/yakhyo/head-pose-estimation","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/aralhekimoglu/face","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/bovifocr/insightface","reach":null}],"summary":{"ran_honours":1,"ran_fixture":1,"ran_violates":1,"unverified":4},"by_repo_kind":{"listed":{"samples":7,"ran":3,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"f975336b5d5f1a80","entry":"calculate_accuracy","repo":"aralhekimoglu/face","repo_kind":"listed","path":"recognition/oneflow_face/validation_util.py","file_url":"https://github.com/aralhekimoglu/face/blob/HEAD/recognition/oneflow_face/validation_util.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f975336b5d5f1a80"}},{"code_sha256_prefix":"5f529c4af000c070","entry":"calculate_roc","repo":"aralhekimoglu/face","repo_kind":"listed","path":"recognition/oneflow_face/validation_util.py","file_url":"https://github.com/aralhekimoglu/face/blob/HEAD/recognition/oneflow_face/validation_util.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5f529c4af000c070"}},{"code_sha256_prefix":"a957019ca36a6747","entry":"str2bool","repo":"aralhekimoglu/face","repo_kind":"listed","path":"recognition/oneflow_face/insightface_train.py","file_url":"https://github.com/aralhekimoglu/face/blob/HEAD/recognition/oneflow_face/insightface_train.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a957019ca36a6747"}},{"code_sha256_prefix":"7522ada649e29d57","entry":"distance","repo":"aralhekimoglu/face","repo_kind":"listed","path":"recognition/oneflow_face/validation_util.py","file_url":"https://github.com/aralhekimoglu/face/blob/HEAD/recognition/oneflow_face/validation_util.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7522ada649e29d57"}},{"code_sha256_prefix":"5b7430811591e445","entry":"flip_data","repo":"aralhekimoglu/face","repo_kind":"listed","path":"recognition/oneflow_face/insightface_val.py","file_url":"https://github.com/aralhekimoglu/face/blob/HEAD/recognition/oneflow_face/insightface_val.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5b7430811591e445"}},{"code_sha256_prefix":"b453cc5fbf797449","entry":"square_crop","repo":"aralhekimoglu/face","repo_kind":"listed","path":"python-package/insightface/utils/face_align.py","file_url":"https://github.com/aralhekimoglu/face/blob/HEAD/python-package/insightface/utils/face_align.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b453cc5fbf797449"}},{"code_sha256_prefix":"326b29422fdffda6","entry":"str2list","repo":"aralhekimoglu/face","repo_kind":"listed","path":"recognition/oneflow_face/insightface_train.py","file_url":"https://github.com/aralhekimoglu/face/blob/HEAD/recognition/oneflow_face/insightface_train.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"326b29422fdffda6"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}