Code for the following paper:
Z. Zhang and Q. Zou and Y. Lin and L. Chen and S. Wang, "Improved Deep Hashing with Soft Pairwise Similarity for Multi-label Image Retrieval", IEEE Transactions on Multimedia, 2019.
-
Prepare the datasets
Download the flickr dataset and put the images into folder/data/flickr/images/
-
Transform the train images in tfrecord format
Runpython tf_record.py
, andtrain-flickr.tfrecords
will be generated -
Prepare the AlexNet weights trained on ImageNet
Download from here and put it on current directory -
Train:
Runsh train-flickr.sh
, and the trained model will be saved inmodels/IDHN-48b/
. -
Test:
Runsh test-flickr.sh
, and generated hash codes will be saved in./results/IDHN_48b_test_flickr.txt
.
Please cite our paper if you use this code in your own work:
@article{zhang2019tmm,
author = {Zhang, Zheng and Zou, Qin and Lin, Yuewei and Chen, Long and Wang, Song},
title = {Improved deep hashing with soft pairwise similarity for multi-label image retrieval},
journal = {IEEE Transactions on Multimedia},
year = {2019}
}