Add pipeline tag, library name, usage example and Gradio demo
#1
by
nielsr
HF Staff
- opened
README.md
CHANGED
|
@@ -1,9 +1,11 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
tags:
|
| 3 |
- model_hub_mixin
|
| 4 |
- pytorch_model_hub_mixin
|
| 5 |
- arxiv:2502.17237
|
| 6 |
-
|
|
|
|
| 7 |
---
|
| 8 |
|
| 9 |
# MegaLoc
|
|
@@ -15,3 +17,12 @@ Here are some examples of top-1 retrieved images from the SF-XL test set, which
|
|
| 15 |
|
| 16 |

|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: mit
|
| 3 |
tags:
|
| 4 |
- model_hub_mixin
|
| 5 |
- pytorch_model_hub_mixin
|
| 6 |
- arxiv:2502.17237
|
| 7 |
+
pipeline_tag: visual-document-retrieval
|
| 8 |
+
library_name: pytorch
|
| 9 |
---
|
| 10 |
|
| 11 |
# MegaLoc
|
|
|
|
| 17 |
|
| 18 |

|
| 19 |
|
| 20 |
+
### Usage
|
| 21 |
+
You can use the model with torch.hub, as simple as this
|
| 22 |
+
```
|
| 23 |
+
import torch
|
| 24 |
+
model = torch.hub.load("gmberton/MegaLoc", "get_trained_model")
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
### Gradio Demo
|
| 28 |
+
[Gradio Demo](https://bd40ca59030575ab1c.gradio.live)
|