- Clone the repository with submodules:
$ git clone --recurse-submodules https://github.com/ai4ce/LoQI-VPR.git
- Install dependencies:
$ conda env create -f environment.yml
- Download GSV-Cities dataset from Kaggle and the Pitts250k dataset for validation
- Download VPR testing datasets using VPR Datasets Downloader
trainer.yaml
and test_trained_model.yaml
from configs
contains the configurations for running distillation and testing VPR methods respectively.
Training: src/trainer_gsv-cities.py
distills VPR models enabled in configurations using the enabled loss functions.
Testing: src/dataset/testing_data.py
precomputes global descriptors for the specified VPR models and datasets selected in configurations. src/calculate_recall.py
records recall rates to tensorboard log files and a Google Sheet.