{"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/transgeo-transformer-is-all-you-need-for","title":"TransGeo: Transformer Is All You Need for Cross-view Image Geo-localization","arxiv_id":"2204.00097","date":"2022-03-31","proceeding":"CVPR 2022 1","authors":["Sijie Zhu","Mubarak Shah","Chen Chen"],"abstract":"The dominant CNN-based methods for cross-view image geo-localization rely on polar transform and fail to model global correlation. We propose a pure transformer-based approach (TransGeo) to address these limitations from a different perspective. TransGeo takes full advantage of the strengths of transformer related to global information modeling and explicit position information encoding. We further leverage the flexibility of transformer input and propose an attention-guided non-uniform cropping method, so that uninformative image patches are removed with negligible drop on performance to reduce computation cost. The saved computation can be reallocated to increase resolution only for informative patches, resulting in performance improvement with no additional computation cost. This \"attend and zoom-in\" strategy is highly similar to human behavior when observing images. Remarkably, TransGeo achieves state-of-the-art results on both urban and rural datasets, with significantly less computation cost than CNN-based methods. It does not rely on polar transform and infers faster than CNN-based methods. Code is available at https://github.com/Jeff-Zilence/TransGeo2022.","url_abs":"https://arxiv.org/abs/2204.00097v1","url_pdf":"https://arxiv.org/pdf/2204.00097v1.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":"transgeo-transformer-is-all-you-need-for","repo_url":"https://github.com/jeff-zilence/transgeo2022","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"all","task_name":"All"},{"task_slug":"image-based-localization","task_name":"Image-Based Localization"},{"task_slug":"geo-localization","task_name":"geo-localization"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/image-based-localization-on-vigor-cross-area","task":"Image-Based Localization","dataset":"VIGOR Cross Area","model":"TransGeo","rank_in_archive_order":4,"of":5,"metrics":{"Hit Rate":"21.21","Recall@1":"18.99","Recall@1%":"88.94","Recall@10":"46.91","Recall@5":"38.24"},"uses_additional_data":false},{"leaderboard":"/sota/image-based-localization-on-vigor-same-area","task":"Image-Based Localization","dataset":"VIGOR Same Area","model":"TransGeo","rank_in_archive_order":4,"of":5,"metrics":{"Hit Rate":"73.09","Recall@1":"61.48","Recall@1%":"99.56","Recall@10":"91.88","Recall@5":"87.54"},"uses_additional_data":false},{"leaderboard":"/sota/image-based-localization-on-cvact","task":"Image-Based Localization","dataset":"cvact","model":"Transgeo","rank_in_archive_order":5,"of":8,"metrics":{"Recall@1":"84.95","Recall@1 (%)":"98.37","Recall@10":"95.78","Recall@5":"94.14"},"uses_additional_data":false},{"leaderboard":"/sota/image-based-localization-on-cvusa-1","task":"Image-Based Localization","dataset":"cvusa","model":"Transgeo","rank_in_archive_order":5,"of":8,"metrics":{"Recall@1":"94.08","Recall@10":"99.04","Recall@5":"98.36","Recall@top1%":"99.77"},"uses_additional_data":false}],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2204.00097","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2204.00097"}},"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/jeff-zilence/transgeo2022","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/Jeff-Zilence/TransGeo2022","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_violates":1,"unverified":2},"by_repo_kind":{"official":{"samples":3,"ran":1,"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":"a36cbdbad9afc4b2","entry":"gps2distance","repo":"Jeff-Zilence/TransGeo2022","repo_kind":"official","path":"dataset/VIGOR.py","file_url":"https://github.com/Jeff-Zilence/TransGeo2022/blob/HEAD/dataset/VIGOR.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a36cbdbad9afc4b2"}},{"code_sha256_prefix":"99a7d0e3a70bb251","entry":"input_transform","repo":"Jeff-Zilence/TransGeo2022","repo_kind":"official","path":"dataset/CVACT.py","file_url":"https://github.com/Jeff-Zilence/TransGeo2022/blob/HEAD/dataset/CVACT.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":"99a7d0e3a70bb251"}},{"code_sha256_prefix":"ebe5c8c48462666d","entry":"input_transform_fov","repo":"Jeff-Zilence/TransGeo2022","repo_kind":"official","path":"dataset/CVACT.py","file_url":"https://github.com/Jeff-Zilence/TransGeo2022/blob/HEAD/dataset/CVACT.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":"ebe5c8c48462666d"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}