Update README.md
Browse files
README.md
CHANGED
@@ -93,5 +93,6 @@ from PIL import Image
|
|
93 |
from huggingface import Geolocalizer
|
94 |
Geolocalizer.from_pretrained('osv5m/baseline')
|
95 |
img = Image.open('.media/examples/img1.jpeg')
|
96 |
-
|
|
|
97 |
```
|
|
|
93 |
from huggingface import Geolocalizer
|
94 |
Geolocalizer.from_pretrained('osv5m/baseline')
|
95 |
img = Image.open('.media/examples/img1.jpeg')
|
96 |
+
x = geoloc.transform(img).unsqueeze(0) # transform the image using our dedicated transformer
|
97 |
+
gps = geolocalizer(x) # B, 2 (lat, lon - tensor in rad)
|
98 |
```
|