Papers › BARF: Bundle-Adjusting Neural Radiance Fields

BARF: Bundle-Adjusting Neural Radiance Fields

13 Apr 2021ICCV 2021 10arXiv:2104.06405archive 2025-07-28

Chen-Hsuan Lin, Wei-Chiu Ma, Antonio Torralba, Simon Lucey

Neural Radiance Fields (NeRF) have recently gained a surge of interest within the computer vision community for its power to synthesize photorealistic novel views of real-world scenes. One limitation of NeRF, however, is its requirement of accurate camera poses to learn the scene representations. In this paper, we propose Bundle-Adjusting Neural Radiance Fields (BARF) for training NeRF from imperfect (or even unknown) camera poses -- the joint problem of learning neural 3D representations and registering camera frames. We establish a theoretical connection to classical image alignment and show that coarse-to-fine registration is also applicable to NeRF. Furthermore, we show that na\"ively applying positional encoding in NeRF has a negative impact on registration with a synthesis-based objective. Experiments on synthetic and real-world data show that BARF can effectively optimize the neural scene representations and resolve large camera pose misalignment at the same time. This enables view synthesis and localization of video sequences from unknown camera poses, opening up new avenues for visual localization systems (e.g. SLAM) and potential applications for dense 3D mapping and reconstruction.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2104.06405")

Code

Syntology Ran 4 of 19 code samples harvested from 3 repositories linked to this paper; 15 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 3 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 2 ran; community (archive-listed): 6 samples from 2 repositories, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

chenhsuanlin/bundle-adjusting-NeRF officialmentioned on GitHubpytorchMIT report
MQ66/gnerf mentioned on GitHubpytorchMIT report
postech-cvlab/scnerf mentioned on GitHubpytorch report
quan-meng/gnerf mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

19 samples harvested; 4 ran; 0 honoured the contract we drafted; 15 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
3ran
15unverified

Licence: 0 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

load_options chenhsuanlin/bundle-adjusting-NeRF/options.py official repository ran MIT (permissive) · 5dd98ac338acc206 · report
parse_arguments chenhsuanlin/bundle-adjusting-NeRF/options.py official repository ran MIT (permissive) · c57c6e4ede0dc332 · report
blue chenhsuanlin/bundle-adjusting-NeRF/util.py official repository unverified MIT (permissive) · 2a69081f447e7ba0 · report
cam2img chenhsuanlin/bundle-adjusting-NeRF/camera.py official repository unverified MIT (permissive) · 54e93b2a1fc19f41 · report
color_border chenhsuanlin/bundle-adjusting-NeRF/util_vis.py official repository unverified MIT (permissive) · ec862b3024c7ea71 · report
get_heatmap chenhsuanlin/bundle-adjusting-NeRF/util_vis.py official repository unverified MIT (permissive) · 3dcfc350d47d5fc9 · report
get_normalized_pixel_grid chenhsuanlin/bundle-adjusting-NeRF/warp.py official repository unverified MIT (permissive) · 31d8aba2ce388395 · report
get_normalized_pixel_grid_crop chenhsuanlin/bundle-adjusting-NeRF/warp.py official repository unverified MIT (permissive) · 7d12c0a3c8662e08 · report
green chenhsuanlin/bundle-adjusting-NeRF/util.py official repository unverified MIT (permissive) · a84f43afe520c054 · report
preprocess_vis_image chenhsuanlin/bundle-adjusting-NeRF/util_vis.py official repository unverified MIT (permissive) · d61202a21ac5df1b · report
red chenhsuanlin/bundle-adjusting-NeRF/util.py official repository unverified MIT (permissive) · 8733b61e389a9be2 · report
to_hom chenhsuanlin/bundle-adjusting-NeRF/camera.py official repository unverified MIT (permissive) · 8ae29d1e7c9ed2f8 · report
world2cam chenhsuanlin/bundle-adjusting-NeRF/camera.py official repository unverified MIT (permissive) · 7e76538e2f377f4d · report
CameraModel postech-cvlab/scnerf/model/camera_model.py community (archive-listed) ran MIT (permissive) · 5c18825021f11763 · report
sample_pdf MQ66/gnerf/model/rendering.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · ce678ba4bfcfef79 · report
PinholeModelRotNoiseLearning10kRayoRaydDistortion postech-cvlab/scnerf/model/camera_model.py community (archive-listed) unverified MIT (permissive) · 60ca8c9c18693dbc · report
create_dataloader MQ66/gnerf/dataset/dataloader.py community (archive-listed) unverified MIT (permissive) · 7c0f83be3b1230bb · report
get_dataset MQ66/gnerf/dataset/dataloader.py community (archive-listed) unverified MIT (permissive) · 3824193054538982 · report
inference MQ66/gnerf/model/rendering.py community (archive-listed) unverified MIT (permissive) · c5960ba148e94710 · report

Tasks

NeRFVisual Localization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections