Supervised Contrastive Learning Based Deep Hashing with Fusion of Global and Local Features for Remote Sensing Image Retrieval
This is the code implementation for our paper "Supervised Contrastive Learning Based Deep Hashing with Fusion of Global and Local Features for Remote Sensing Image Retrieval".
Requirements:
python
numpy
pytorch
torchvision
tqdm
PIL
You should download three data sets including UC Merced, AID, and NWPU-RESISC45 and put data set in the corresponding directory under dataset
. If you want to construct your own training set and testing set, you should modify the path of images of training set, testing set and database respectively in the txtfile/.../train.txt
, txtfile/.../test.txt
and txtfile/.../database.txt
for corresponding data set.
python UCMD_main.py