Skip to content

Project for Advanced Machine Learning course @ PoliTo

License

Notifications You must be signed in to change notification settings

paolotron/Drop-Geo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project of Visual Geo-localization

Project for AML(01URWOV) course @ Polito. The projec consisted in reimplementing and expanding the current state of the art models for the geolocalization task

Datasets

We provide the datasets of Pitts30k and St Lucia

About the datasets formatting, the adopted convention is that the names of the files with the images are:

@ UTM_easting @ UTM_northing @ UTM_zone_number @ UTM_zone_letter @ latitude @ longitude @ pano_id @ tile_num @ heading @ pitch @ roll @ height @ timestamp @ note @ extension

Note that some of these values can be empty (e.g. the timestamp might be unknown), and the only required values are UTM coordinates (obtained from latitude and longitude).

Getting started

To get started first download the repository

git clone https://github.com/gmberton/project_vg

then download Pitts30k (link), and extract the zip file. Then install the required packages

pip install -r requirements.txt

and finally run

python3 train.py --datasets_folder path/to/folder/containing/pitts30k

This will train, validate, and test the model on Pitts30k. If the previous steps were executed correctly, training will take only a few of hours, and end with a recall@1 (R@1) of roughly 60%. Results should heavily improve using GeM or NetVLAD layer.

To visualize all the parameters that it is possible to set, run

python3 train.py -h