Update README.md
Browse files
README.md
CHANGED
|
@@ -59,7 +59,7 @@ Here is a quick example of using the model. Since this model is an image matchin
|
|
| 59 |
The raw outputs contain the list of keypoints detected by the backbone as well as the list of matches with their corresponding
|
| 60 |
matching scores.
|
| 61 |
```python
|
| 62 |
-
from transformers import AutoImageProcessor,
|
| 63 |
import torch
|
| 64 |
from PIL import Image
|
| 65 |
import requests
|
|
@@ -72,7 +72,7 @@ image2 = Image.open(requests.get(url_image2, stream=True).raw)
|
|
| 72 |
images = [image1, image2]
|
| 73 |
|
| 74 |
processor = AutoImageProcessor.from_pretrained("zju-community/efficientloftr")
|
| 75 |
-
model =
|
| 76 |
|
| 77 |
inputs = processor(images, return_tensors="pt")
|
| 78 |
with torch.no_grad():
|
|
|
|
| 59 |
The raw outputs contain the list of keypoints detected by the backbone as well as the list of matches with their corresponding
|
| 60 |
matching scores.
|
| 61 |
```python
|
| 62 |
+
from transformers import AutoImageProcessor, AutoModelForKeypointMatching
|
| 63 |
import torch
|
| 64 |
from PIL import Image
|
| 65 |
import requests
|
|
|
|
| 72 |
images = [image1, image2]
|
| 73 |
|
| 74 |
processor = AutoImageProcessor.from_pretrained("zju-community/efficientloftr")
|
| 75 |
+
model = AutoModelForKeypointMatching.from_pretrained("zju-community/efficientloftr")
|
| 76 |
|
| 77 |
inputs = processor(images, return_tensors="pt")
|
| 78 |
with torch.no_grad():
|