Skip to content

Commit fdb7040

Browse files
committed
initial update
1 parent 635907b commit fdb7040

35 files changed

+942729
-1
lines changed

README.md

+36-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,37 @@
11
# Prototype-supervised Adversarial Network for Targeted Attack of Deep Hashing
2-
## coming soon
2+
This is the code for our CVPR 2021 paper "Prototype-supervised Adversarial Network for Targeted Attack of Deep Hashing", which formulates a flexible generative architecture for efficient and effective targeted hashing attack. In this repository, we not only provide the implementation of the proposed Prototype-supervised Adversarial Network (i.e., ProS-GAN), but also some popular deep hahsing methods used in the paper and the previous targeted attack methods in hashing based retrieval.
3+
4+
## Usage
5+
#### Dependencies
6+
- Python 3.7.6
7+
- Pytorch 1.6.0
8+
- Numpy 1.18.5
9+
- Pillow 7.1.2
10+
- CUDA
11+
12+
Notably, other versions may be also OK, but we didn't verify it.
13+
14+
#### Train hashing models
15+
Specify the hyper-parameters in hashing.py, and then run
16+
>python hashing.py
17+
18+
#### Attack by P2P or DHTA
19+
Specify the hyper-parameters in dhta.py, and then run
20+
>python dhta.py
21+
22+
#### Train ProS-GAN
23+
Specify the hyper-parameters in main.py, and then run
24+
>python main.py --train True
25+
26+
#### Evaluate ProS-GAN
27+
Specify the hyper-parameters in main.py, and then run
28+
>python main.py --train False --test True
29+
30+
## Cite
31+
If you find this work is useful, please cite the following:
32+
>@inproceedings{wang2021prototype,
33+
title={Prototype-supervised Adversarial Network for Targeted Attack of Deep Hashing},
34+
author={Wang, Xunguang and Zhang, Zheng and Wu, Baoyuan and Shen, Fumin and Lu, Guangming},
35+
booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
36+
year={2021}
37+
}

0 commit comments

Comments
 (0)