Giter Site home page Giter Site logo

youngfrank / cfcd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bassyess/cfcd

0.0 0.0 0.0 929 KB

The Official Implementation of CFCD. Coarse-to-Fine: Learning Compact Discriminative Representation for Single-Stage Image Retrieval

License: MIT License

Shell 1.29% Python 98.71%

cfcd's Introduction

Coarse-to-Fine: Learning Compact Discriminative Representation for Single-Stage Image Retrieval

Official Pytorch Implementation of the paper "Coarse-to-Fine: Learning Compact Discriminative Representation for Single-Stage Image Retrieval"
accept to ICCV 2023

Overall architecture

Codes

Requirements

  • NVIDIA GPU, Linux, Python3(tested on 3.6.8)
  • Tested with CUDA 11.0 and PyTorch 1.7.0
pip install -r requirements.txt

Data preparation

Download Google Landmarks dataset into datasets/images. Unzip the files and make the dataset structures as datasets/data/landmark/train_list.txt.

Download ROxford5k and RParis6k into datasets/images. Unzip the files and make the directory structures as follows.

datasets
  └ images
      └ roxford5k
        └ gnd_roxford5k.pkl
        └ jpg
      └ rparis6k
        └ gnd_rparis6k.pkl
        └ jpg

model weights

You can download pretrained weights from pemetric and download our model weights from Google Drive

Training

Set datapath, model, training parameters in configs/resnet50_cfcd_s1_8gpu.yaml and run

sh run_train.sh

Evaluation

  1. ROxf and RPar feature extraction, and run
sh evaler/run_extractor_roxford_rparis.sh
  1. 1M distractor feature extraction, and run
sh evaler/run_extractor_revisitop1m.sh
  1. Eval on ROxf, RPar and +1M, and run
sh evaler/run_evaluate.sh

🙏 Acknowledgments

Our pytorch implementation is derived from DOLG, Revisiting Oxford and Paris and FIRe. We thank for these great works and repos.

✏️ Citation

If the project helps your research, please consider citing our paper as follows.

@inproceedings{zhu2023coarse,
  title={Coarse-to-Fine: Learning Compact Discriminative Representation for Single-Stage Image Retrieval},
  author={Zhu, Yunquan and Gao, Xinkai and Ke, Bo and Qiao, Ruizhi and Sun, Xing},
  booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision},
  pages={11260--11269},
  year={2023}
}

cfcd's People

Contributors

sysuzyq 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.