{"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/learning-to-make-keypoints-sub-pixel-accurate","title":"Learning to Make Keypoints Sub-Pixel Accurate","arxiv_id":"2407.11668","date":"2024-07-16","proceeding":null,"authors":["Shinjeong Kim","Marc Pollefeys","Daniel Barath"],"abstract":"This work addresses the challenge of sub-pixel accuracy in detecting 2D local features, a cornerstone problem in computer vision. Despite the advancements brought by neural network-based methods like SuperPoint and ALIKED, these modern approaches lag behind classical ones such as SIFT in keypoint localization accuracy due to their lack of sub-pixel precision. We propose a novel network that enhances any detector with sub-pixel precision by learning an offset vector for detected features, thereby eliminating the need for designing specialized sub-pixel accurate detectors. This optimization directly minimizes test-time evaluation metrics like relative pose error. Through extensive testing with both nearest neighbors matching and the recent LightGlue matcher across various real-world datasets, our method consistently outperforms existing methods in accuracy. Moreover, it adds only around 7 ms to the time of a particular detector. The code is available at https://github.com/KimSinjeong/keypt2subpx .","url_abs":"https://arxiv.org/abs/2407.11668v1","url_pdf":"https://arxiv.org/pdf/2407.11668v1.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":"learning-to-make-keypoints-sub-pixel-accurate","repo_url":"https://github.com/kimsinjeong/keypt2subpx","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2407.11668","atlas_url":"https://app.syntology.ai/?focus=2407.11668","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2407.11668"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/kimsinjeong/keypt2subpx","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":12,"ran_draft_wrong":1,"ran_violates":1},"by_repo_kind":{"official":{"samples":14,"ran":14,"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":"8f8a9f02683a9743","entry":"add_argument_group","repo":"kimsinjeong/keypt2subpx","repo_kind":"official","path":"settings.py","file_url":"https://github.com/kimsinjeong/keypt2subpx/blob/HEAD/settings.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8f8a9f02683a9743"}},{"code_sha256_prefix":"b878227b0bf45ec0","entry":"angle_error_mat","repo":"kimsinjeong/keypt2subpx","repo_kind":"official","path":"utils.py","file_url":"https://github.com/kimsinjeong/keypt2subpx/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b878227b0bf45ec0"}},{"code_sha256_prefix":"c0148cc150921b59","entry":"angle_error_vec","repo":"kimsinjeong/keypt2subpx","repo_kind":"official","path":"utils.py","file_url":"https://github.com/kimsinjeong/keypt2subpx/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c0148cc150921b59"}},{"code_sha256_prefix":"8a04e00bdab17ab9","entry":"create_meshgrid","repo":"kimsinjeong/keypt2subpx","repo_kind":"official","path":"model.py","file_url":"https://github.com/kimsinjeong/keypt2subpx/blob/HEAD/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8a04e00bdab17ab9"}},{"code_sha256_prefix":"fd6d00be16baac22","entry":"dual_softmax_matcher","repo":"kimsinjeong/keypt2subpx","repo_kind":"official","path":"dataprocess/dedode.py","file_url":"https://github.com/kimsinjeong/keypt2subpx/blob/HEAD/dataprocess/dedode.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fd6d00be16baac22"}},{"code_sha256_prefix":"1850b68643e0cea6","entry":"get_logger","repo":"kimsinjeong/keypt2subpx","repo_kind":"official","path":"settings.py","file_url":"https://github.com/kimsinjeong/keypt2subpx/blob/HEAD/settings.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1850b68643e0cea6"}},{"code_sha256_prefix":"409032cbdc844dd7","entry":"last_checkpoint","repo":"kimsinjeong/keypt2subpx","repo_kind":"official","path":"utils.py","file_url":"https://github.com/kimsinjeong/keypt2subpx/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"409032cbdc844dd7"}},{"code_sha256_prefix":"50afa2863ffd9fde","entry":"plot_overlap","repo":"kimsinjeong/keypt2subpx","repo_kind":"official","path":"logger.py","file_url":"https://github.com/kimsinjeong/keypt2subpx/blob/HEAD/logger.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"50afa2863ffd9fde"}},{"code_sha256_prefix":"52149bdc1b043f19","entry":"sample_k_keypoints","repo":"kimsinjeong/keypt2subpx","repo_kind":"official","path":"dataprocess/superpoint_densescore.py","file_url":"https://github.com/kimsinjeong/keypt2subpx/blob/HEAD/dataprocess/superpoint_densescore.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"52149bdc1b043f19"}},{"code_sha256_prefix":"f684bfe56f64af6f","entry":"simple_nms","repo":"kimsinjeong/keypt2subpx","repo_kind":"official","path":"dataprocess/superpoint_densescore.py","file_url":"https://github.com/kimsinjeong/keypt2subpx/blob/HEAD/dataprocess/superpoint_densescore.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f684bfe56f64af6f"}},{"code_sha256_prefix":"248284f69adfeaad","entry":"str2bool","repo":"kimsinjeong/keypt2subpx","repo_kind":"official","path":"settings.py","file_url":"https://github.com/kimsinjeong/keypt2subpx/blob/HEAD/settings.py","link_basis":"plan_row","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"248284f69adfeaad"}},{"code_sha256_prefix":"c10ee0f852bbdf33","entry":"to_normalized_coords","repo":"kimsinjeong/keypt2subpx","repo_kind":"official","path":"dataprocess/dedode.py","file_url":"https://github.com/kimsinjeong/keypt2subpx/blob/HEAD/dataprocess/dedode.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c10ee0f852bbdf33"}},{"code_sha256_prefix":"ce58f04f80fb3c1d","entry":"to_pixel_coords","repo":"kimsinjeong/keypt2subpx","repo_kind":"official","path":"dataprocess/dedode.py","file_url":"https://github.com/kimsinjeong/keypt2subpx/blob/HEAD/dataprocess/dedode.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ce58f04f80fb3c1d"}},{"code_sha256_prefix":"719478e41beaad68","entry":"top_k_keypoints","repo":"kimsinjeong/keypt2subpx","repo_kind":"official","path":"dataprocess/superpoint_densescore.py","file_url":"https://github.com/kimsinjeong/keypt2subpx/blob/HEAD/dataprocess/superpoint_densescore.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"719478e41beaad68"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}