- Discriminative Deep Hashing for Scalable Face Image Retrieval(DDH), IJCAI 2017
Created by Jie Lin, Zechao Li and Jinhui Tang at Nanjing University of Science and Technology, NanJing, China
In this work, we propose a novel Discriminative Deep Hashing (DDH) framework for large-scale face image retrieval. The proposed framework leverages feature extraction, hash learning and class prediction in one unified network. And the divide-and-encode module is introduced to reduce the redundancy among hash codes and the network parameters simultaneously. The proposed method can learn discriminative and compact hash codes. Experiments show that the proposed method achieves encouraging retrieval performance. DDH's framework is as follows:
- python 3.12
- torch==2.0.1+cu117
We compress the dataset into pkl format for easy read by small memory machines.
-
YouTube Faces Dataset
train_set: https://drive.google.com/open?id=1Of-hUKhQhk3OtCUAZc15pZqEvKHWNUpN
test_set: https://drive.google.com/open?id=10RuxZuIMfvPN6ziPglJTgS6IWFBzW3pW
-
FaceScrub Dataset
train_set: https://drive.google.com/open?id=1STytImOvad3PgPN2NwUSVga-fOU5i2Tm
test_set: https://drive.google.com/open?id=1saSeHjaJBSAUNlyC-Ismdh2VbEiyZPuU
1、For different datasets, you can try different hyper parameters corresponding to regularization and quantization errors. In our experiments, our settings are as follows:
LOSS_01_LAYER_PARAMS = 0.00001
REGULARIZER_PARAMS = 0.0000001
2、After running train.py, you can set WEIGHTS_SAVE_PATH to set the weight of the save path. Then you can test your model's performance by running predict.py.
3、In the predict.py, you can get the result of the precision, recall, map from the 'model_predict' function.
@Jackie Lin DDH: https://github.com/xjcvip007/DDH