Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
---
|
| 4 |
+
Model: Geoclip (https://arxiv.org/abs/2309.16020)
|
| 5 |
+
|
| 6 |
+
Example Usage:
|
| 7 |
+
```python
|
| 8 |
+
from huggingface_hub import hf_hub_download
|
| 9 |
+
import torch
|
| 10 |
+
|
| 11 |
+
hf_hub_download("MVRL/geoclip-location-encoder", "model.py", local_dir=".")
|
| 12 |
+
|
| 13 |
+
from model import LocationEncoder
|
| 14 |
+
|
| 15 |
+
model = LocationEncoder.from_pretrained("MVRL/geoclip-location-encoder")
|
| 16 |
+
|
| 17 |
+
print(model(torch.tensor([[42.0, 128.0]])).shape)
|
| 18 |
+
```
|