Implemement of Instance Similarity Deep Hashing for Multi-Label Image Retrieval
-
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/ISDH-48b/
. -
Test:
Runsh test-flickr.sh
, and generated hash codes will be saved in./results/ISDH_48b_test_flickr.txt
.