Papers › DFNet: Enhance Absolute Pose Regression with Direct Feature Matching

DFNet: Enhance Absolute Pose Regression with Direct Feature Matching

1 Apr 2022arXiv:2204.00559archive 2025-07-28

Shuai Chen, Xinghui Li, ZiRui Wang, Victor Adrian Prisacariu

We introduce a camera relocalization pipeline that combines absolute pose regression (APR) and direct feature matching. By incorporating exposure-adaptive novel view synthesis, our method successfully addresses photometric distortions in outdoor environments that existing photometric-based methods fail to handle. With domain-invariant feature matching, our solution improves pose regression accuracy using semi-supervised learning on unlabeled data. In particular, the pipeline consists of two components: Novel View Synthesizer and DFNet. The former synthesizes novel views compensating for changes in exposure and the latter regresses camera poses and extracts robust features that close the domain gap between real images and synthetic ones. Furthermore, we introduce an online synthetic data generation scheme. We show that these approaches effectively enhance camera pose estimation both in indoor and outdoor scenes. Hence, our method achieves a state-of-the-art accuracy by outperforming existing single-image APR methods by as much as 56%, comparable to 3D structure-based methods.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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="2204.00559")

Code

Syntology Ran 12 of 17 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 10 ran with no contract checked.

By repository: official repository: 17 samples from 1 repository, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

activevisionlab/dfnet officialmentioned in papermentioned on GitHubpytorchMIT 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

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

2ran · our draft was wrong
10ran
5unverified

Licence: 0 of the 17 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 activevisionlab/dfnet. “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.

batchify activevisionlab/dfnet/script/models/nerf.py official repository ran · our draft was wrong MIT (permissive) · fd57e365830d09de · report
camera_frustum_initializer activevisionlab/dfnet/dataset_loaders/load_7Scenes.py official repository ran MIT (permissive) · c9625d568955ffac · report
disable_model_grad activevisionlab/dfnet/script/dm/direct_pose_model.py official repository ran MIT (permissive) · 5ebe28260a0e2f2e · report
filter_hook activevisionlab/dfnet/script/dm/pose_model.py official repository ran MIT (permissive) · c7bea2e25b534df3 · report
generate_sampling_frustum activevisionlab/dfnet/dataset_loaders/load_Cambridge.py official repository ran MIT (permissive) · 1fc1ac3d7fc531a9 · report
is_inside_frustum activevisionlab/dfnet/dataset_loaders/load_7Scenes.py official repository ran MIT (permissive) · f869aad3a90d4156 · report
load_image activevisionlab/dfnet/dataset_loaders/cambridge_scenes.py official repository ran MIT (permissive) · 9b5a8fceac6859e6 · report
mse activevisionlab/dfnet/script/models/metrics.py official repository ran MIT (permissive) · c832923b546e9fb3 · report
preprocess_data activevisionlab/dfnet/script/dm/pose_model.py official repository ran MIT (permissive) · 1d4f466dd0b12111 · report
process_poses_rotmat activevisionlab/dfnet/dataset_loaders/cambridge_scenes.py official repository ran MIT (permissive) · aba0c9bab294b165 · report
psnr activevisionlab/dfnet/script/models/metrics.py official repository ran MIT (permissive) · b5b388448f22219a · report
run_network activevisionlab/dfnet/script/models/nerf.py official repository ran · our draft was wrong MIT (permissive) · 8f235fb889b93174 · report
initK activevisionlab/dfnet/dataset_loaders/load_7Scenes.py official repository unverified MIT (permissive) · 13be307ef0c24c0e · report
process_poses_rotmat activevisionlab/dfnet/dataset_loaders/seven_scenes.py official repository unverified MIT (permissive) · ecb54915a44f88b3 · report
qlog activevisionlab/dfnet/dataset_loaders/cambridge_scenes.py official repository unverified MIT (permissive) · 667f7d75349dad79 · report
run_network_DNeRF activevisionlab/dfnet/script/models/nerf.py official repository unverified MIT (permissive) · b2c204ce6bb5f30e · report
ssim activevisionlab/dfnet/script/models/metrics.py official repository unverified MIT (permissive) · 895ffdb66b75e1b4 · report

Tasks

Camera Pose EstimationCamera RelocalizationNovel View SynthesisPose EstimationSynthetic Data Generationregression

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AttentionLinear LayerMulti-Head AttentionSoftmaxSynthesizer

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