Skip to content

Commit 675b515

Browse files
committed
Merge branch 'master' of https://github.com/thuml/DeepHash
2 parents b8d2a40 + 612a41d commit 675b515

3 files changed

Lines changed: 12 additions & 13 deletions

File tree

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Overall
22

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, DQN and 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.
44

55
## Installation
66

@@ -23,33 +23,31 @@ For more details see *[TensorFlow installation instructions](https://github.com/
2323

2424
To easily use our lib, we need to install scipy, python-opencv, h5py, scikit-learn, coverage.py and pytest by:
2525

26-
```python
26+
```shell
2727
pip install scipy
2828
sudo apt-get install python-opencv
2929
pip install h5py
3030
pip install -U scikit-learn
31-
pip install coverage
32-
pip install pytest
3331
```
3432

3533
To use the algorithms implemented in `./core`, we need to add the path of `./core` to environment variables as:
3634

37-
```python
38-
export PYTHONPATH=/path/to/project/xlearn/hash_learning/core:$PYTHONPATH
35+
```shell
36+
export PYTHONPATH=/path/to/project/DeepHash/core:$PYTHONPATH
3937
```
4038

4139
## Data Preparation
4240
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.
4341

4442
## 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:
4644
```
4745
cd example/$method/
4846
./train_val.sh
4947
```
5048

5149
## Core
52-
* `./core/model/`: contains the implementation of models: dhn, dqn and dvsq.
50+
* `./core/model/`: contains the implementation of models: dhn, dqn, dvsq and dch.
5351
* `./core/architecture/`: contains the implementation of network structure, e.g. AlexNet.
5452
* `./core/data_provider/`: contains the data reader implementation.
5553
* `./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/
5957
<!--**Evaluation**-->
6058

6159
## 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
6261
* `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
6362
* `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
6463
* `DHN`: Deep Hashing Network for Efficient Similarity Retrieval, Han Zhu, Mingsheng Long, Jianmin Wang, Yue Cao, AAAI Conference on Artificial Intelligence (AAAI), 2016
6564

6665
## Contacts
6766
Maintainers of hash learning library:
6867
* Yue Cao, Email: caoyue10@gmail.com
69-
* Bin Liu, Email: b\_liu14@163.com
68+
* Bin Liu, Email: liubinthss@gmail.com

core/model/dqn/dqn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#################################################################################
2-
# Deep Visual-Semantic Quantization for Efficient Image Retrieval #
3-
# Authors: Yue Cao, Mingsheng Long, Jianmin Wang, Shichen Liu #
2+
# Deep Quantization Network for Efficient Image Retrieval #
3+
# Authors: Yue Cao, Mingsheng Long, Jianmin Wang, Han Zhu, Qingfu Wen #
44
# Contact: caoyue10@gmail.com #
55
##################################################################################
66

core/model/prunehash/prunehash.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#################################################################################
2-
# Deep Hashing Network for Efficient Similarity Retrieval #
3-
# Authors: Han Zhu, Mingsheng Long, Jianmin Wang, Yue Cao #
2+
# Deep Cauchy Hashing for Hamming Space Retrieval #
3+
# Authors: Yue Cao, Mingsheng Long, Bin Liu, Jianmin Wang #
44
# Contact: caoyue10@gmail.com #
55
##################################################################################
66

0 commit comments

Comments
 (0)