{"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/locate-size-and-count-accurately-resolving","title":"Locate, Size and Count: Accurately Resolving People in Dense Crowds via Detection","arxiv_id":"1906.07538","date":"2019-06-18","proceeding":null,"authors":["Deepak Babu Sam","Skand Vishwanath Peri","Mukuntha Narayanan Sundararaman","Amogh Kamath","R. Venkatesh Babu"],"abstract":"We introduce a detection framework for dense crowd counting and eliminate the need for the prevalent density regression paradigm. Typical counting models predict crowd density for an image as opposed to detecting every person. These regression methods, in general, fail to localize persons accurate enough for most applications other than counting. Hence, we adopt an architecture that locates every person in the crowd, sizes the spotted heads with bounding box and then counts them. Compared to normal object or face detectors, there exist certain unique challenges in designing such a detection system. Some of them are direct consequences of the huge diversity in dense crowds along with the need to predict boxes contiguously. We solve these issues and develop our LSC-CNN model, which can reliably detect heads of people across sparse to dense crowds. LSC-CNN employs a multi-column architecture with top-down feedback processing to better resolve persons and produce refined predictions at multiple resolutions. Interestingly, the proposed training regime requires only point head annotation, but can estimate approximate size information of heads. We show that LSC-CNN not only has superior localization than existing density regressors, but outperforms in counting as well. The code for our approach is available at https://github.com/val-iisc/lsc-cnn.","url_abs":"https://arxiv.org/abs/1906.07538v3","url_pdf":"https://arxiv.org/pdf/1906.07538v3.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":"locate-size-and-count-accurately-resolving","repo_url":"https://github.com/val-iisc/lsc-cnn","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"locate-size-and-count-accurately-resolving","repo_url":"https://github.com/Vivek-23-Titan/Crowd_Detection","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"crowd-counting","task_name":"Crowd Counting"},{"task_slug":"regression-1","task_name":"regression"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/crowd-counting-on-shanghaitech-a","task":"Crowd Counting","dataset":"ShanghaiTech A","model":"LSC-CNN","rank_in_archive_order":22,"of":35,"metrics":{"MAE":"66.4"},"uses_additional_data":false},{"leaderboard":"/sota/crowd-counting-on-shanghaitech-b","task":"Crowd Counting","dataset":"ShanghaiTech B","model":"LSC-CNN","rank_in_archive_order":17,"of":32,"metrics":{"MAE":"8.1"},"uses_additional_data":false},{"leaderboard":"/sota/crowd-counting-on-ucf-cc-50","task":"Crowd Counting","dataset":"UCF CC 50","model":"LSC-CNN","rank_in_archive_order":8,"of":22,"metrics":{"MAE":"225.6"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1906.07538","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1906.07538"}},"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/val-iisc/lsc-cnn","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Vivek-23-Titan/Crowd_Detection","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":1,"unverified":11},"by_repo_kind":{"official":{"samples":8,"ran":1,"repositories":1},"listed":{"samples":4,"ran":0,"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":"e2dcff4d996a1569","entry":"get_filename","repo":"val-iisc/lsc-cnn","repo_kind":"official","path":"utils/logging_tools.py","file_url":"https://github.com/val-iisc/lsc-cnn/blob/HEAD/utils/logging_tools.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e2dcff4d996a1569"}},{"code_sha256_prefix":"f9bda08c909ec8bd","entry":"apply_nms","repo":"Vivek-23-Titan/Crowd_Detection","repo_kind":"listed","path":"utils_nms.py","file_url":"https://github.com/Vivek-23-Titan/Crowd_Detection/blob/HEAD/utils_nms.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":"f9bda08c909ec8bd"}},{"code_sha256_prefix":"3a4a60bd9854e290","entry":"compute_box_weights","repo":"val-iisc/lsc-cnn","repo_kind":"official","path":"utils/loss_weights.py","file_url":"https://github.com/val-iisc/lsc-cnn/blob/HEAD/utils/loss_weights.py","link_basis":"first_harvest_node","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":"3a4a60bd9854e290"}},{"code_sha256_prefix":"46648bce97152072","entry":"compute_boxes_and_sizes","repo":"Vivek-23-Titan/Crowd_Detection","repo_kind":"listed","path":"utils_model.py","file_url":"https://github.com/Vivek-23-Titan/Crowd_Detection/blob/HEAD/utils_model.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":"46648bce97152072"}},{"code_sha256_prefix":"ea608e199ea71d7a","entry":"extract_conf_points","repo":"val-iisc/lsc-cnn","repo_kind":"official","path":"utils/apply_nms.py","file_url":"https://github.com/val-iisc/lsc-cnn/blob/HEAD/utils/apply_nms.py","link_basis":"first_harvest_node","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":"ea608e199ea71d7a"}},{"code_sha256_prefix":"ad4f7ebb7049535f","entry":"find_game_metric","repo":"val-iisc/lsc-cnn","repo_kind":"official","path":"utils/game.py","file_url":"https://github.com/val-iisc/lsc-cnn/blob/HEAD/utils/game.py","link_basis":"first_harvest_node","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":"ad4f7ebb7049535f"}},{"code_sha256_prefix":"1ecdcad5f0e411b8","entry":"game_metric","repo":"val-iisc/lsc-cnn","repo_kind":"official","path":"utils/game.py","file_url":"https://github.com/val-iisc/lsc-cnn/blob/HEAD/utils/game.py","link_basis":"first_harvest_node","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":"1ecdcad5f0e411b8"}},{"code_sha256_prefix":"fa8bb179e519ff2e","entry":"get_upsample_output","repo":"Vivek-23-Titan/Crowd_Detection","repo_kind":"listed","path":"utils_model.py","file_url":"https://github.com/Vivek-23-Titan/Crowd_Detection/blob/HEAD/utils_model.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":"fa8bb179e519ff2e"}},{"code_sha256_prefix":"925f23b10b193d5d","entry":"is_square","repo":"val-iisc/lsc-cnn","repo_kind":"official","path":"utils/nms.py","file_url":"https://github.com/val-iisc/lsc-cnn/blob/HEAD/utils/nms.py","link_basis":"first_harvest_node","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":"925f23b10b193d5d"}},{"code_sha256_prefix":"c0b38f026afda7d1","entry":"load_net","repo":"val-iisc/lsc-cnn","repo_kind":"official","path":"utils/logging_tools.py","file_url":"https://github.com/val-iisc/lsc-cnn/blob/HEAD/utils/logging_tools.py","link_basis":"first_harvest_node","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":"c0b38f026afda7d1"}},{"code_sha256_prefix":"4127a61b05160f71","entry":"nms","repo":"val-iisc/lsc-cnn","repo_kind":"official","path":"utils/nms.py","file_url":"https://github.com/val-iisc/lsc-cnn/blob/HEAD/utils/nms.py","link_basis":"first_harvest_node","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":"4127a61b05160f71"}},{"code_sha256_prefix":"c44e5d4145ceecd3","entry":"upsample_single","repo":"Vivek-23-Titan/Crowd_Detection","repo_kind":"listed","path":"utils_model.py","file_url":"https://github.com/Vivek-23-Titan/Crowd_Detection/blob/HEAD/utils_model.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":"c44e5d4145ceecd3"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}