Introduction
Finding correspondences—matching the same point across two different images—is a fundamental task in computer vision, essential for 3D reconstruction (SfM) and autonomous navigation (SLAM). While traditional methods like SIFT offer precision, they often struggle with extreme lighting or viewpoint changes. Modern neural networks are more robust but face a significant memory bottleneck: comparing every pixel pair creates massive 4D correlation tensors. Consequently, these networks typically downsample images, resulting in coarse "patch-level" matches that lack the sub-pixel accuracy required for high-quality geometric estimation.
The Patch2Pix Framework
Patch2Pix addresses this by introducing a "detect-to-refine" framework. It treats matching as a two-stage process, analogous to object detection:
- Proposal Stage: A correspondence network (e.g., NCNet) identifies candidate patch-level matches.
- Refinement Stage: Patch2Pix "zooms in" on these proposals. It extracts multi-layer features from a CNN backbone and processes them through a progressive regressor.
Progressive Regression and Weak Supervision
The core of Patch2Pix is its progressive regression. Instead of searching a cost volume, the network directly predicts a confidence score and a pixel-level offset ($\delta$). This allows for sub-pixel precision with a low computational footprint.
Crucially, the model is trained using weak supervision from epipolar geometry. By leveraging known camera poses during training, the loss function (Sampson distance) penalizes matches that deviate from the mathematically expected epipolar line. This eliminates the need for expensive, dense ground-truth labels.
Experimental Evaluation
The model was trained on the MegaDepth dataset and evaluated across several benchmarks including HPatches for basic matching, Aachen Day-Night for outdoor localization, and InLoc for indoor environments.
Key Results
Patch2Pix demonstrates significant improvements in precision across all benchmarks. On the InLoc DUC2 dataset, it outperformed the previous best weakly-supervised method by 14.5% at the finest error threshold, highlighting its superior pixel-level accuracy.
The framework is also "plug-and-play." It can refine matches from entirely different systems, including fully-supervised ones like SuperGlue, consistently boosting their geometric accuracy.
Key Insights
- Regression vs. Matching: Direct coordinate regression is more efficient than building cost volumes for refinement and enables sub-pixel accuracy.
- Geometry as a Teacher: Epipolar constraints provide a sufficient signal for training high-precision matchers without dense labels.
- Efficiency: By refining only a set of proposals, Patch2Pix maintains high resolution where it matters without the memory cost of full-image dense matching.
Limitations
As a refinement tool, Patch2Pix is dependent on the quality of the initial proposals. If the first stage fails to identify a match region, Patch2Pix cannot "discover" it. Future work may focus on more tightly integrating the proposal and refinement stages to improve both robustness and speed.
Summary updated