Add pipeline tag, library name, usage example and Gradio demo

#1
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +12 -1
README.md CHANGED
@@ -1,9 +1,11 @@
1
  ---
 
2
  tags:
3
  - model_hub_mixin
4
  - pytorch_model_hub_mixin
5
  - arxiv:2502.17237
6
- license: mit
 
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
  ![teaser](https://github.com/user-attachments/assets/a90b8d4c-ab53-4151-aacc-93493d583713)
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
  ![teaser](https://github.com/user-attachments/assets/a90b8d4c-ab53-4151-aacc-93493d583713)
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)