Views
No views yet


!git clone https://github.com/gastruc/osv5m.
Then from any script whose cwd is the repos main directory (cd osv5m) run:1from PIL import Image
2from models.huggingface import Geolocalizer
3
4geoloc = Geolocalizer.from_pretrained('osv5m/baseline')
5img = Image.open('.media/examples/img1.jpeg')
6x = geoloc.transform(img).unsqueeze(0) # transform the image using our dedicated transformer
7gps = geoloc(x) # B, 2 (lat, lon - tensor in rad)python evaluation.py exp=eval_best_model dataset.global_batch_size=10241@article{osv5m,
2 title = {{OpenStreetView-5M}: {T}he Many Roads to Global Visual Geolocation},
3 author = {Astruc, Guillaume and Dufour, Nicolas and Siglidis, Ioannis
4 and Aronssohn, Constantin and Bouia, Nacim and Fu, Stephanie and Loiseau, Romain
5 and Nguyen, Van Nguyen and Raude, Charles and Vincent, Elliot and Xu, Lintao
6 and Zhou, Hongyu and Landrieu, Loic},
7 journal = {CVPR},
8 year = {2024},
9 }