YAML Metadata Warning:The pipeline tag "feature-matching" is not in the official list: text-classification, token-classification, table-question-answering, question-answering, zero-shot-classification, translation, summarization, feature-extraction, text-generation, fill-mask, sentence-similarity, text-to-speech, text-to-audio, automatic-speech-recognition, audio-to-audio, audio-classification, audio-text-to-text, voice-activity-detection, depth-estimation, image-classification, object-detection, image-segmentation, text-to-image, image-to-text, image-to-image, image-to-video, unconditional-image-generation, video-classification, reinforcement-learning, robotics, tabular-classification, tabular-regression, tabular-to-text, table-to-text, multiple-choice, text-ranking, text-retrieval, time-series-forecasting, text-to-video, image-text-to-text, image-text-to-image, image-text-to-video, visual-question-answering, document-question-answering, zero-shot-image-classification, graph-ml, mask-generation, zero-shot-object-detection, text-to-3d, image-to-3d, image-feature-extraction, video-text-to-text, keypoint-detection, visual-document-retrieval, any-to-any, video-to-video, other
MatchFormer: Interleaving Attention in Transformers for Feature Matching (ACCV 2022)
Official model checkpoints for MatchFormer: Interleaving Attention in Transformers for Feature Matching (ACCV 2022 Oral).
π Introduction
In this work, we propose a novel hierarchical extract-and-match transformer, termed MatchFormer. Inside each stage of the hierarchical encoder, we interleave self-attention for feature extraction and cross-attention for feature matching, enabling an intuitive and powerful extract-and-match scheme. MatchFormer establishes robust and accurate dense correspondences across diverse indoor and outdoor challenging scenes.
π Model Zoo & File Structure
InSAI-Lab/MatchFormer
βββ indoor-large-SEA.ckpt # Indoor large model with SEA (Spatial-Entropy Attention) (89.5 MB)
βββ indoor-lite-LA.ckpt # Indoor lightweight model with LA (Linear Attention) (77.4 MB)
βββ outdoor-large-LA.ckpt # Outdoor large model with LA (77.4 MB)
βββ outdoor-lite-SEA.ckpt # Outdoor lightweight model with SEA (103.5 MB)
π Benchmark Results
1. Indoor Relative Pose Estimation on ScanNet (AUC)
| Model | Backbone | Resolution | AUC @ 5Β° | AUC @ 10Β° | AUC @ 20Β° | Weights |
|---|---|---|---|---|---|---|
| MatchFormer-Large | largesea | (8, 2) | 43.3 | 63.4 | 77.1 | indoor-large-SEA.ckpt |
| MatchFormer-Lite | litela | (8, 4) | 38.8 | 59.2 | 74.0 | indoor-lite-LA.ckpt |
2. Outdoor Relative Pose Estimation on MegaDepth (AUC)
| Model | Backbone | Resolution | AUC @ 5Β° | AUC @ 10Β° | AUC @ 20Β° | Weights |
|---|---|---|---|---|---|---|
| MatchFormer-Large | largela | (8, 2) | 53.3 | 69.7 | 81.8 | outdoor-large-LA.ckpt |
| MatchFormer-Lite | litesea | (8, 4) | 48.2 | 65.1 | 78.4 | outdoor-lite-SEA.ckpt |
β‘ Quick Download Guide
Option 1: Hugging Face CLI
# Download all MatchFormer weights to model/weights/
hf download InSAI-Lab/MatchFormer --local-dir model/weights
# Or download a specific checkpoint
hf download InSAI-Lab/MatchFormer indoor-large-SEA.ckpt --local-dir model/weights
Option 2: Python huggingface_hub
from huggingface_hub import hf_hub_download
# Download indoor large SEA checkpoint
ckpt_path = hf_hub_download(
repo_id="InSAI-Lab/MatchFormer",
filename="indoor-large-SEA.ckpt",
local_dir="model/weights"
)
π Citation
@inproceedings{wang2022matchformer,
title={MatchFormer: Interleaving Attention in Transformers for Feature Matching},
author={Wang, Qing and Zhang, Jiaming and Yang, Kailun and Peng, Kunyu and Stiefelhagen, Rainer},
booktitle={Asian Conference on Computer Vision (ACCV)},
year={2022}
}
