Coder Social home page Coder Social logo

whxcjm / transgeo2024 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeff-zilence/transgeo2022

1.0 0.0 2.0 541 KB

Unofficial repository for TransGeo: Transformer Is All You Need for Cross-view Image Geo-localization

License: MIT License

Shell 3.19% Python 96.34% Batchfile 0.48%

transgeo2024's Introduction

TransGeo2022

This repository provides the code for "TransGeo: Transformer Is All You Need for Cross-view Image Geo-localization".

@inproceedings{zhu2022transgeo,
  title={TransGeo: Transformer Is All You Need for Cross-view Image Geo-localization},
  author={Zhu, Sijie and Shah, Mubarak and Chen, Chen},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={1162--1171},
  year={2022}
}

Dataset

Please prepare VIGOR, CVUSA or CVACT. You may need to modify specific path in dataloader.

Requirement

- Python >= 3.6, numpy, matplotlib, pillow, ptflops, timm
- PyTorch >= 1.8.1, torchvision >= 0.11.1

Training and Evaluation

Simply run the scripts like:

sh run_CVUSA.sh

You may need to specify the GPUs for training in "train.py". Remove the second line if you want to train the simple stage-1 model. Change the "--dataset" to train on other datasets. The code follows the multiprocessing distributed training style from PyTorch and Moco, but it only uses one GPU by default for training. You may need to tune the learning rate for multi-GPU training, e.g. linear scaling rule. There may be memory issue if training with too many GPUs with our sampler.

We follow timm, ViT and Deit for pytorch implementation of vision transformer. We use the pytorch implementation of ASAM.

Pretrained Models

You can find the pretrained models here. Simply add "-e" for train.py if you want to evaluate with pretrained weights. Please refer to VIGOR for meter-level evaluation code. Validation features for VIGOR are also available for quick meter-level evaluation from npy. Let me know if there is anything wrong with the link.

Reference

- http://mvrl.cs.uky.edu/datasets/cvusa/
- https://github.com/Jeff-Zilence/VIGOR
- https://github.com/Liumouliu/OriCNN
- https://github.com/facebookresearch/deit
- https://github.com/facebookresearch/moco
- https://github.com/davda54/sam
- https://github.com/david-husx/crossview_localisation.git

transgeo2024's People

Contributors

jeff-zilence avatar whxcjm avatar

Stargazers

 avatar

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.