{"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/hdmapnet-an-online-hd-map-construction-and","title":"HDMapNet: An Online HD Map Construction and Evaluation Framework","arxiv_id":"2107.06307","date":"2021-07-13","proceeding":null,"authors":["Qi Li","Yue Wang","Yilun Wang","Hang Zhao"],"abstract":"Constructing HD semantic maps is a central component of autonomous driving. However, traditional pipelines require a vast amount of human efforts and resources in annotating and maintaining the semantics in the map, which limits its scalability. In this paper, we introduce the problem of HD semantic map learning, which dynamically constructs the local semantics based on onboard sensor observations. Meanwhile, we introduce a semantic map learning method, dubbed HDMapNet. HDMapNet encodes image features from surrounding cameras and/or point clouds from LiDAR, and predicts vectorized map elements in the bird's-eye view. We benchmark HDMapNet on nuScenes dataset and show that in all settings, it performs better than baseline methods. Of note, our camera-LiDAR fusion-based HDMapNet outperforms existing methods by more than 50% in all metrics. In addition, we develop semantic-level and instance-level metrics to evaluate the map learning performance. Finally, we showcase our method is capable of predicting a locally consistent map. By introducing the method and metrics, we invite the community to study this novel map learning problem.","url_abs":"https://arxiv.org/abs/2107.06307v4","url_pdf":"https://arxiv.org/pdf/2107.06307v4.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":"hdmapnet-an-online-hd-map-construction-and","repo_url":"https://github.com/HFAiLab/hdmapnet","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"hdmapnet-an-online-hd-map-construction-and","repo_url":"https://github.com/Tsinghua-MARS-Lab/HDMapNet","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"hdmapnet-an-online-hd-map-construction-and","repo_url":"https://github.com/tsinghua-mars-lab/online-hd-map-construction-cvpr2023","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"GPL-3.0"}}],"tasks":[{"task_slug":"autonomous-driving","task_name":"Autonomous Driving"},{"task_slug":"hd-semantic-map-learning","task_name":"HD semantic map learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2107.06307","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2107.06307"}},"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/HFAiLab/hdmapnet","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Tsinghua-MARS-Lab/HDMapNet","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/tsinghua-mars-lab/online-hd-map-construction-cvpr2023","reach":{"status":"ok","spdx":"GPL-3.0"}}],"summary":{"ran_draft_wrong":1,"unverified":11},"by_repo_kind":{"listed":{"samples":12,"ran":1,"repositories":2}},"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":1,"samples":[{"code_sha256_prefix":"7ab535c06ef669db","entry":"onehot_encoding","repo":"Tsinghua-MARS-Lab/HDMapNet","repo_kind":"listed","path":"evaluate.py","file_url":"https://github.com/Tsinghua-MARS-Lab/HDMapNet/blob/HEAD/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"7ab535c06ef669db"}},{"code_sha256_prefix":"149a4ed27e9a056c","entry":"bilinear_sampler","repo":"HFAiLab/hdmapnet","repo_kind":"listed","path":"model/base_models/ipm.py","file_url":"https://github.com/HFAiLab/hdmapnet/blob/HEAD/model/base_models/ipm.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":"149a4ed27e9a056c"}},{"code_sha256_prefix":"bd2738dcfbe8cea9","entry":"chamfer_distance","repo":"HFAiLab/hdmapnet","repo_kind":"listed","path":"evaluation/chamfer_distance.py","file_url":"https://github.com/HFAiLab/hdmapnet/blob/HEAD/evaluation/chamfer_distance.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":"bd2738dcfbe8cea9"}},{"code_sha256_prefix":"73b744e12eccbc86","entry":"eval_iou","repo":"HFAiLab/hdmapnet","repo_kind":"listed","path":"evaluation/iou.py","file_url":"https://github.com/HFAiLab/hdmapnet/blob/HEAD/evaluation/iou.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":"73b744e12eccbc86"}},{"code_sha256_prefix":"b0906b2270b4920f","entry":"expand_as_one_hot","repo":"HFAiLab/hdmapnet","repo_kind":"listed","path":"model/losses/contrastive_loss.py","file_url":"https://github.com/HFAiLab/hdmapnet/blob/HEAD/model/losses/contrastive_loss.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":"b0906b2270b4920f"}},{"code_sha256_prefix":"49ae2a43e69a170b","entry":"get_line_instances_from_mask","repo":"HFAiLab/hdmapnet","repo_kind":"listed","path":"evaluation/AP.py","file_url":"https://github.com/HFAiLab/hdmapnet/blob/HEAD/evaluation/AP.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":"49ae2a43e69a170b"}},{"code_sha256_prefix":"34573cb4430fef21","entry":"label_onehot_encoding","repo":"HFAiLab/hdmapnet","repo_kind":"listed","path":"evaluation/iou.py","file_url":"https://github.com/HFAiLab/hdmapnet/blob/HEAD/evaluation/iou.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":"34573cb4430fef21"}},{"code_sha256_prefix":"bd830bd36f4ecea7","entry":"line_matching_by_CD","repo":"HFAiLab/hdmapnet","repo_kind":"listed","path":"evaluation/AP.py","file_url":"https://github.com/HFAiLab/hdmapnet/blob/HEAD/evaluation/AP.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":"bd830bd36f4ecea7"}},{"code_sha256_prefix":"f5dde8b46d767cf0","entry":"perspective","repo":"HFAiLab/hdmapnet","repo_kind":"listed","path":"model/base_models/ipm.py","file_url":"https://github.com/HFAiLab/hdmapnet/blob/HEAD/model/base_models/ipm.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":"f5dde8b46d767cf0"}},{"code_sha256_prefix":"b4b90f5dac4d6650","entry":"rotation_from_euler","repo":"HFAiLab/hdmapnet","repo_kind":"listed","path":"model/base_models/ipm.py","file_url":"https://github.com/HFAiLab/hdmapnet/blob/HEAD/model/base_models/ipm.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":"b4b90f5dac4d6650"}},{"code_sha256_prefix":"49b1b7956f5e59b1","entry":"semantic_mask_chamfer_dist_cum","repo":"HFAiLab/hdmapnet","repo_kind":"listed","path":"evaluation/chamfer_distance.py","file_url":"https://github.com/HFAiLab/hdmapnet/blob/HEAD/evaluation/chamfer_distance.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":"49b1b7956f5e59b1"}},{"code_sha256_prefix":"723bdf769b19acc1","entry":"single_instance_line_AP","repo":"HFAiLab/hdmapnet","repo_kind":"listed","path":"evaluation/AP.py","file_url":"https://github.com/HFAiLab/hdmapnet/blob/HEAD/evaluation/AP.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":"723bdf769b19acc1"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}