{"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/loc-nerf-monte-carlo-localization-using","title":"Loc-NeRF: Monte Carlo Localization using Neural Radiance Fields","arxiv_id":"2209.09050","date":"2022-09-19","proceeding":null,"authors":["Dominic Maggio","Marcus Abate","Jingnan Shi","Courtney Mario","Luca Carlone"],"abstract":"We present Loc-NeRF, a real-time vision-based robot localization approach that combines Monte Carlo localization and Neural Radiance Fields (NeRF). Our system uses a pre-trained NeRF model as the map of an environment and can localize itself in real-time using an RGB camera as the only exteroceptive sensor onboard the robot. While neural radiance fields have seen significant applications for visual rendering in computer vision and graphics, they have found limited use in robotics. Existing approaches for NeRF-based localization require both a good initial pose guess and significant computation, making them impractical for real-time robotics applications. By using Monte Carlo localization as a workhorse to estimate poses using a NeRF map model, Loc-NeRF is able to perform localization faster than the state of the art and without relying on an initial pose estimate. In addition to testing on synthetic data, we also run our system using real data collected by a Clearpath Jackal UGV and demonstrate for the first time the ability to perform real-time global localization with neural radiance fields. We make our code publicly available at https://github.com/MIT-SPARK/Loc-NeRF.","url_abs":"https://arxiv.org/abs/2209.09050v1","url_pdf":"https://arxiv.org/pdf/2209.09050v1.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":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"loc-nerf-monte-carlo-localization-using","repo_url":"https://github.com/mit-spark/loc-nerf","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2209.09050","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2209.09050"}},"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/mit-spark/loc-nerf","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":3,"unverified":6},"by_repo_kind":{"official":{"samples":9,"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":"fd57e365830d09de","entry":"batchify","repo":"mit-spark/loc-nerf","repo_kind":"official","path":"src/full_nerf_helpers.py","file_url":"https://github.com/mit-spark/loc-nerf/blob/HEAD/src/full_nerf_helpers.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fd57e365830d09de"}},{"code_sha256_prefix":"d26ffa77f1cd53a6","entry":"get_embedder","repo":"mit-spark/loc-nerf","repo_kind":"official","path":"src/full_nerf_helpers.py","file_url":"https://github.com/mit-spark/loc-nerf/blob/HEAD/src/full_nerf_helpers.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d26ffa77f1cd53a6"}},{"code_sha256_prefix":"4366d225ac2fe16d","entry":"ndc_rays","repo":"mit-spark/loc-nerf","repo_kind":"official","path":"src/render_helpers.py","file_url":"https://github.com/mit-spark/loc-nerf/blob/HEAD/src/render_helpers.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4366d225ac2fe16d"}},{"code_sha256_prefix":"60ed76adfd8aa0ea","entry":"get_pose","repo":"mit-spark/loc-nerf","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/mit-spark/loc-nerf/blob/HEAD/src/utils.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":"60ed76adfd8aa0ea"}},{"code_sha256_prefix":"c03007b6cafd9690","entry":"get_rays","repo":"mit-spark/loc-nerf","repo_kind":"official","path":"src/render_helpers.py","file_url":"https://github.com/mit-spark/loc-nerf/blob/HEAD/src/render_helpers.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":"c03007b6cafd9690"}},{"code_sha256_prefix":"929e526ea6fc4975","entry":"get_rays_np","repo":"mit-spark/loc-nerf","repo_kind":"official","path":"src/render_helpers.py","file_url":"https://github.com/mit-spark/loc-nerf/blob/HEAD/src/render_helpers.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":"929e526ea6fc4975"}},{"code_sha256_prefix":"ec416c81cecb9865","entry":"load_blender","repo":"mit-spark/loc-nerf","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/mit-spark/loc-nerf/blob/HEAD/src/utils.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":"ec416c81cecb9865"}},{"code_sha256_prefix":"01ae531174d0751c","entry":"load_nerf","repo":"mit-spark/loc-nerf","repo_kind":"official","path":"src/full_nerf_helpers.py","file_url":"https://github.com/mit-spark/loc-nerf/blob/HEAD/src/full_nerf_helpers.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":"01ae531174d0751c"}},{"code_sha256_prefix":"1f17e82449269b3b","entry":"rgb2bgr","repo":"mit-spark/loc-nerf","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/mit-spark/loc-nerf/blob/HEAD/src/utils.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":"1f17e82449269b3b"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}