Git Product home page Git Product logo

trisa's Introduction

TriSA: A Three Stage Approach for UAV-Satellite Cross-View Geo-Localization Based on Self-Supervised Feature Enhancement

Python 3.6+

This repository is the code for our paper TriSSA: A Three Stage Strong Approach for UAV-Satellite Cross-View Geo-Localization Based on Self-Supervised Feature Enhancement, Thank you for your kindly attention.

requirement

  1. Download the University-1652 dataset
  2. Prepare Data Folder
├── University-1652/
│   ├── readme.txt
│   ├── train/
│       ├── drone/                   /* drone-view training images 
│           ├── 0001
|           ├── 0002
|           ...
│       ├── street/                  /* street-view training images 
│       ├── satellite/               /* satellite-view training images       
│       ├── google/                  /* noisy street-view training images (collected from Google Image)
│   ├── test/
│       ├── query_drone/  
│       ├── gallery_drone/  
│       ├── query_street/  
│       ├── gallery_street/ 
│       ├── query_satellite/  
│       ├── gallery_satellite/ 
│       ├── 4K_drone/

Evaluation and Get the Results in Our Paper

You can download the trained embedding files (.mat)from the following link and put them in the "evaluaiton/weights/" folder

Download the trained files

Google Driver

You can download the trained embedding files (.mat) from the following link and put them in the "evaluaiton/weights/" folder

We prepared the following .py files for easy evaluation:

├── evaluation/
│   ├── evaluate_cpu_no_rerank.py  /* test with cpu and no rerank
│   ├── evaluate_cpu_rerank.py     /* test with cpu and rerank
│   ├── evaluate_gpu_rerank.py     /* test with gpu and rerank     

If you are using the gpu-based re-ranking, make sure to compile the file by:

cd evaluation/
sh make.sh

Train and Test

We provide scripts to complete TriSSA training and testing

  • Change the data_dir and test_dir paths and then run:
python train.py --gpu_ids 0 --name traied_model_name --train_all --batchsize 32  --data_dir your_data_path
python test.py --gpu_ids 0 --name traied_model_name --test_dir your_data_path  --batchsize 32 --which_epoch 120

Thanks

  1. Zhedong Zheng, University-1652: A Multi-view Multi-source Benchmark for Drone-based Geo-localization
  2. Xuanmeng Zhang, Understanding Image Retrieval Re-Ranking: A Graph Neural Network Perspective

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.