File size: 793 Bytes
41f1433
5732b32
b841714
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
license: apache-2.0
tags:
- image-matching
- computer-vision
- feature-matching
library_name: image-matching-models
---

# XoFTR

XoFTR is a cross-view feature matching transformer for image matching.

## Files

- `xoftr_640.safetensors`: XoFTR model pretrained at 640px resolution
- `xoftr_840.safetensors`: XoFTR model pretrained at 840px resolution

## Usage

```python
from matching import get_matcher

# Use 640 variant (default)
matcher = get_matcher("xoftr", device="cuda", pretrained_size=640)

# Or use 840 variant
matcher = get_matcher("xoftr", device="cuda", pretrained_size=840)

mkpts0, mkpts1, _, _, _, _ = matcher(img0, img1)
```

## Links
- [Original repository](https://github.com/OnderT/XoFTR)
- [Image Matching Models](https://github.com/gmberton/image-matching-models)