To run this codes, you should do follow things:
- extract resnet feature and then run create_S.py to construct similarity matrix.
You can download cifar-10.mat (here) training data and cifar_KNN.npz from (here) - download vgg19 pretrained model on ImageNet based tensorflow here .
- run this command 'python BGAN.py 32' to train network and then generate 32 bit codes
- after training done, you can run evalutate.py to calculate MAP. HIT: you need to change some paths in evalutate.py.