PMatch: Paired Masked Image Modeling for Dense Geometric Matching
About
Dense geometric matching determines the dense pixel-wise correspondence between a source and support image corresponding to the same 3D structure. Prior works employ an encoder of transformer blocks to correlate the two-frame features. However, existing monocular pretraining tasks, e.g., image classification, and masked image modeling (MIM), can not pretrain the cross-frame module, yielding less optimal performance. To resolve this, we reformulate the MIM from reconstructing a single masked image to reconstructing a pair of masked images, enabling the pretraining of transformer module. Additionally, we incorporate a decoder into pretraining for improved upsampling results. Further, to be robust to the textureless area, we propose a novel cross-frame global matching module (CFGM). Since the most textureless area is planar surfaces, we propose a homography loss to further regularize its learning. Combined together, we achieve the State-of-The-Art (SoTA) performance on geometric matching. Codes and models are available at https://github.com/ShngJZ/PMatch.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Relative Pose Estimation | MegaDepth (test) | Pose AUC @5°61.4 | 83 | |
| Homography Estimation | HPatches | AUC @3px71.9 | 35 | |
| Pose Estimation | MegaDepth 1500 (test) | AUC @ 5°61.4 | 27 | |
| Pose Estimation | ScanNet 1500 (test) | AUC@5°29.4 | 26 | |
| Geometric Matching | MegaDepth (test) | PCK@179.83 | 22 | |
| Two-View Camera Pose Estimation | ScanNet (val) | AUC (5° Threshold)29.4 | 10 | |
| Two-View Camera Pose Estimation | YFCC100m 4 scenes | mAP @5°75.9 | 8 |