Papers › GIM: Learning Generalizable Image Matcher From Internet Videos

GIM: Learning Generalizable Image Matcher From Internet Videos

16 Feb 2024arXiv:2402.11095archive 2025-07-28

Xuelun Shen, Zhipeng Cai, Wei Yin, Matthias Müller, Zijun Li, Kaixuan Wang, Xiaozhi Chen, Cheng Wang

Image matching is a fundamental computer vision problem. While learning-based methods achieve state-of-the-art performance on existing benchmarks, they generalize poorly to in-the-wild images. Such methods typically need to train separate models for different scene types and are impractical when the scene type is unknown in advance. One of the underlying problems is the limited scalability of existing data construction pipelines, which limits the diversity of standard image matching datasets. To address this problem, we propose GIM, a self-training framework for learning a single generalizable model based on any image matching architecture using internet videos, an abundant and diverse data source. Given an architecture, GIM first trains it on standard domain-specific datasets and then combines it with complementary matching methods to create dense labels on nearby frames of novel videos. These labels are filtered by robust fitting, and then enhanced by propagating them to distant frames. The final model is trained on propagated data with strong augmentations. We also propose ZEB, the first zero-shot evaluation benchmark for image matching. By mixing data from diverse domains, ZEB can thoroughly assess the cross-domain generalization performance of different methods. Applying GIM consistently improves the zero-shot performance of 3 state-of-the-art image matching architectures; with 50 hours of YouTube videos, the relative zero-shot performance improves by 8.4%-18.1%. GIM also enables generalization to extreme cross-domain data such as Bird Eye View (BEV) images of projected 3D point clouds (Fig. 1(c)). More importantly, our single zero-shot model consistently outperforms domain-specific baselines when evaluated on downstream tasks inherent to their respective domains. The video presentation is available at https://www.youtube.com/watch?v=FU_MJLD8LeY.

PaperPDFCodeCode 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="2402.11095")

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: 12 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.

xuelunshen/gim officialmentioned 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-24; that is when this build read the record, not when the samples ran.

12ran
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 xuelunshen/gim. “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.

assign_keypoints xuelunshen/gim/hloc/match_dense.py official repository ran MIT (permissive) · 6b4df3b8d1f95653 · report
build_augmentor xuelunshen/gim/datasets/augment.py official repository ran MIT (permissive) · a6b2a9c667b63a4c · report
camera_intrinsic_transform xuelunshen/gim/datasets/scenenet/utils.py official repository ran MIT (permissive) · afe48ee65c2a83aa · report
collate_fn xuelunshen/gim/datasets/data.py official repository ran fingerprinted MIT (permissive) · 12c09a1a10ca585d · report
get_divisible_wh xuelunshen/gim/video_preprocessor.py official repository ran MIT (permissive) · 3e3aed34677c7943 · report
get_resized_wh xuelunshen/gim/video_preprocessor.py official repository ran MIT (permissive) · 2bcc62914d8b4ce5 · report
get_resized_wh xuelunshen/gim/datasets/utils.py official repository ran MIT (permissive) · 21abf193b3d22564 · report
imread_color xuelunshen/gim/datasets/utils.py official repository ran MIT (permissive) · c736348f2c26f6a4 · report
imread_gray xuelunshen/gim/datasets/utils.py official repository ran MIT (permissive) · 28b32b7ce4eceafa · report
position_to_np_array xuelunshen/gim/datasets/scenenet/utils.py official repository ran MIT (permissive) · ef0704c1e391fa96 · report
read_deeplab_image xuelunshen/gim/video_preprocessor.py official repository ran MIT (permissive) · f983f6b4bdc58b8d · report
read_depth xuelunshen/gim/datasets/scenenet/utils.py official repository ran MIT (permissive) · 34e02c0f95a179a4 · report
error_auc xuelunshen/gim/analysis.py official repository unverified MIT (permissive) · 7580602299bba28c · report
get_grouped_ids xuelunshen/gim/hloc/match_dense.py official repository unverified MIT (permissive) · 903ef22b452ab670 · report
main xuelunshen/gim/hloc/extract_features.py official repository unverified MIT (permissive) · 5f12182269ed0b51 · report
resize_image xuelunshen/gim/hloc/extract_features.py official repository unverified MIT (permissive) · 47ffaeadde70c45c · report
to_cpts xuelunshen/gim/hloc/match_dense.py official repository unverified MIT (permissive) · e54750836225cbe0 · report

Tasks

3D ReconstructionCamera Pose EstimationImage MatchingKeypoint detection and image matchingPose EstimationVisual Localization

Datasets

Introduced by this paper, per the archive.

ZEB

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Matching ZEB GIM-RoMa Mean AUC@5° 53.3 #1 of 10 Archive leaderboard report
Image Matching ZEB GIM-DKM Mean AUC@5° 51.2 #2 of 10 Archive leaderboard report
Image Matching ZEB GIM-LoFTR Mean AUC@5° 39.1 #5 of 10 Archive leaderboard report
Image Matching ZEB GIM-LightGlue Mean AUC@5° 38.3 #6 of 10 Archive leaderboard report
Pose Estimation InLoc GIM-DKM DUC1-Acc@0.25m,10° 57.1 #1 of 6 Archive leaderboard report
Pose Estimation InLoc GIM-DKM DUC1-Acc@0.5m,10° 78.8 #1 of 6 Archive leaderboard report
Pose Estimation InLoc GIM-DKM DUC1-Acc@1.0m,10° 88.4 #1 of 6 Archive leaderboard report
Pose Estimation InLoc GIM-DKM DUC2-Acc@0.25m,10° 70.2 #1 of 6 Archive leaderboard report
Pose Estimation InLoc GIM-DKM DUC2-Acc@0.5m,10° 91.6 #1 of 6 Archive leaderboard report
Pose Estimation InLoc GIM-DKM DUC2-Acc@1.0m,10° 92.4 #1 of 6 Archive leaderboard report
Pose Estimation InLoc GIM-LoFTR DUC1-Acc@0.25m,10° 54.5 #2 of 6 Archive leaderboard report
Pose Estimation InLoc GIM-LoFTR DUC1-Acc@0.5m,10° 78.3 #2 of 6 Archive leaderboard report
Pose Estimation InLoc GIM-LoFTR DUC1-Acc@1.0m,10° 87.4 #2 of 6 Archive leaderboard report
Pose Estimation InLoc GIM-LoFTR DUC2-Acc@0.25m,10° 63.4 #2 of 6 Archive leaderboard report
Pose Estimation InLoc GIM-LoFTR DUC2-Acc@0.5m,10° 83.2 #2 of 6 Archive leaderboard report
Pose Estimation InLoc GIM-LoFTR DUC2-Acc@1.0m,10° 87.0 #2 of 6 Archive leaderboard report
Pose Estimation InLoc GIM-SuperGlue DUC1-Acc@0.25m,10° 53.5 #3 of 6 Archive leaderboard report
Pose Estimation InLoc GIM-SuperGlue DUC1-Acc@0.5m,10° 76.8 #3 of 6 Archive leaderboard report
Pose Estimation InLoc GIM-SuperGlue DUC1-Acc@1.0m,10° 86.9 #3 of 6 Archive leaderboard report
Pose Estimation InLoc GIM-SuperGlue DUC2-Acc@0.25m,10° 61.8 #3 of 6 Archive leaderboard report
Pose Estimation InLoc GIM-SuperGlue DUC2-Acc@0.5m,10° 85.5 #3 of 6 Archive leaderboard report
Pose Estimation InLoc GIM-SuperGlue DUC2-Acc@1.0m,10° 87.8 #3 of 6 Archive leaderboard report
Visual Localization Aachen Day-Night v1.1 Benchmark GIM-LoFTR Acc@0.25m, 2° 79.1 #1 of 7 Archive leaderboard report
Visual Localization Aachen Day-Night v1.1 Benchmark GIM-LoFTR Acc@0.5m, 5° 91.6 #1 of 7 Archive leaderboard report
Visual Localization Aachen Day-Night v1.1 Benchmark GIM-LoFTR Acc@5m, 10° 100.0 #1 of 7 Archive leaderboard report
Visual Localization Aachen Day-Night v1.1 Benchmark GIM-SuperGlue Acc@0.25m, 2° 78.0 #3 of 7 Archive leaderboard report
Visual Localization Aachen Day-Night v1.1 Benchmark GIM-SuperGlue Acc@0.5m, 5° 90.6 #3 of 7 Archive leaderboard report
Visual Localization Aachen Day-Night v1.1 Benchmark GIM-SuperGlue Acc@5m, 10° 100.0 #3 of 7 Archive leaderboard report
Visual Localization Aachen Day-Night v1.1 Benchmark GIM-DKM Acc@0.25m, 2° 77.0 #5 of 7 Archive leaderboard report
Visual Localization Aachen Day-Night v1.1 Benchmark GIM-DKM Acc@0.5m, 5° 90.1 #5 of 7 Archive leaderboard report
Visual Localization Aachen Day-Night v1.1 Benchmark GIM-DKM Acc@5m, 10° 99.5 #5 of 7 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

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