Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 986 Bytes

README.md

File metadata and controls

22 lines (19 loc) · 986 Bytes

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

Usage

1. Install dependencies:

Requirements:

python
numpy
pytorch
torchvision
tqdm
PIL

2. Data:

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.

3. Training:

python UCMD_main.py