osv5m commited on
Commit
32bed39
1 Parent(s): 7d51285

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
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
- gps = geoloc(geoloc.transform(image).unsqueeze(0)) # B, 2 (lat, lon - tensor)
 
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
  ```