Skip to content

Latest commit

 

History

History
60 lines (49 loc) · 2.63 KB

README.md

File metadata and controls

60 lines (49 loc) · 2.63 KB

MARs: Multi-view Attention Regularizations

Repository for the ECCV 2024 paper titled MARs: Multi-view Attention Regularizations for Patch-based Feature Recognition of Space Terrain.

MARs is a mechanism for aligning the attention information between multi-view patch-based features (i.e., landmarks) in metric learning descriptor networks, improving recognition and re-identification accuracy:

Please check out the project page/paper for more details.

Installation

Install the required Python packages:

pip install -r requirements.txt

Getting Started

All dataset, training, and model settings are set in cfg.yaml. Check out this file for a detailed description of all options, including choice of convolution layer, attention layer, and metric learning loss function. At a minimum, you will need to update landmarks_dir: ... to point to the directory of landmark images, sequentially numbered (e..g, 0.png 1.png 2.png ...). After configuration, you can run training by executing the following:

python train.py

in the src/ directory. By default, model weights will be saved to src/training_logs/.

Default Datasets

We use three datasets of landmarks, including the "Stadium" class from RESISC-45 (Earth Stadium), the "Crater" class from HiRISE (Mars Crater), and the "Crater" class from Luna-1 (Moon Crater). Follow the links to download each dataset, and update cfg.yaml: landmarks_dir to train on this data.

Replicating Paper Results

To replicate the paper experiments, you can update the settings in cfg.yaml as follows:

Earth Stadium

landmarks_dir: 'path/to/resisc45/stadium/'
eval: True

Mars Crater

landmarks_dir: 'path/to/hirise/craters/'
eval: True
luna1_eval: True
luna1_annotation_file: '/path/to/luna1/lro_navigation/annotations.txt'

Moon Crater (Luna-1)

batch_size: 128
landmarks_dir: 'path/to/luna1/crater_images/'
eval: True
luna1_eval: True
luna1_annotation_file: '/path/to/luna1/lro_navigation/annotations.txt'

Citation

@inproceedings{chase2024mars,
  title={MARs: Multi-view Attention Regularizations for Patch-based Feature Recognition of Space Terrain},
  author={Timothy Chase Jr and Karthik Dantu},
  year={2024},
  booktitle={ECCV},
}