You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-9Lines changed: 8 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
## Overall
2
2
3
-
The xlearn hash learning library is a lightweight deep learning to hash library based on TensorFlow. This repository contains newly designed hashing and quantization methods, e.g. DHN, DQNand DVSQ. Besides, hash learning library provides high-level APIs and working examples for defining, training, fine-tuning and evaluating hashing models.
3
+
The DeepHash package is a lightweight deep learning to hash library based on TensorFlow. This repository contains newly designed deep learning to hash and quantization methods, e.g. DHN, DQN, DVSQ and DCH. Besides, hash learning library provides high-level APIs and working examples for defining, training, fine-tuning and evaluating hashing models.
4
4
5
5
## Installation
6
6
@@ -23,33 +23,31 @@ For more details see *[TensorFlow installation instructions](https://github.com/
23
23
24
24
To easily use our lib, we need to install scipy, python-opencv, h5py, scikit-learn, coverage.py and pytest by:
25
25
26
-
```python
26
+
```shell
27
27
pip install scipy
28
28
sudo apt-get install python-opencv
29
29
pip install h5py
30
30
pip install -U scikit-learn
31
-
pip install coverage
32
-
pip install pytest
33
31
```
34
32
35
33
To use the algorithms implemented in `./core`, we need to add the path of `./core` to environment variables as:
In `data/cifar10/train.txt`, we give an example to show how to prepare image training data. In `data/cifar10/test.txt` and `data/cifar10/database.txt`, the list of testing and database images could be processed during predicting procedure. If you want to add other datasets as the input, you need to prepare `train.txt`, `test.txt` and `database.txt` as CIFAR-10 dataset.
43
41
44
42
## Get Started
45
-
The example of `$method` (DVSQ, DQN and DHN) can be run with the following command:
43
+
The example of `$method` (DCH, DVSQ, DQN and DHN) can be run with the following command:
46
44
```
47
45
cd example/$method/
48
46
./train_val.sh
49
47
```
50
48
51
49
## Core
52
-
*`./core/model/`: contains the implementation of models: dhn, dqnand dvsq.
50
+
*`./core/model/`: contains the implementation of models: dhn, dqn, dvsq and dch.
53
51
*`./core/architecture/`: contains the implementation of network structure, e.g. AlexNet.
54
52
*`./core/data_provider/`: contains the data reader implementation.
55
53
*`./core/evaluation/`: contains the implementation of evaluation criteria in search procedure, such as mAP, precision, recall and so on.
@@ -59,11 +57,12 @@ cd example/$method/
59
57
<!--**Evaluation**-->
60
58
61
59
## Methods
60
+
*`DCH`: Deep Cauchy Hashing for Hamming Space Retrieval, Yue Cao, Mingsheng Long, Bin Liu, Jianmin Wang, IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018
62
61
*`DVSQ`: Deep Visual-Semantic Quantization for Efficient Image Retrieval, Yue Cao, Mingsheng Long, Jianmin Wang, Shichen Liu, IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017
63
62
*`DQN`: Deep Quantization Network for Efficient Image Retrieval, Yue Cao, Mingsheng Long, Jianmin Wang, Han Zhu, Qingfu Wen, AAAI Conference on Artificial Intelligence (AAAI), 2016
64
63
*`DHN`: Deep Hashing Network for Efficient Similarity Retrieval, Han Zhu, Mingsheng Long, Jianmin Wang, Yue Cao, AAAI Conference on Artificial Intelligence (AAAI), 2016
0 commit comments