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
HashGAN: Deep Learning to Hash with Pair Conditional Wasserstein GAN
2
2
=====================================
3
3
4
-
Code for ["HashGAN: Deep Learning to Hash with Pair Conditional Wasserstein GAN"](http://openaccess.thecvf.com/content_cvpr_2018/papers/Cao_HashGAN_Deep_Learning_CVPR_2018_paper.pdf).
4
+
Code for CVPR 2018 Paper ["HashGAN: Deep Learning to Hash with Pair Conditional Wasserstein GAN"](http://openaccess.thecvf.com/content_cvpr_2018/papers/Cao_HashGAN_Deep_Learning_CVPR_2018_paper.pdf).
In `data_list/` folder, we give three examples to show how to prepare image training data. If you want to add other datasets as the input, you need to prepare `train.txt`, `test.txt`, `database.txt` and `database_nolabel.txt` as CIFAR-10 dataset.
14
22
15
-
You can download the whole cifar10 dataset including the images and data list from [here](https://github.com/thulab/DeepHash/releases/download/v0.1/cifar10.zip), and unzip it to data/cifar10 folder.
23
+
You can download the whole cifar10 dataset including the images and data list from [here](https://github.com/thulab/DeepHash/releases/download/v0.1/cifar10.zip), and unzip it to `data/cifar10` folder.
16
24
17
-
Make sure the tree of `/path/to/project/data/cifar10` looks like this:
25
+
If you need run on NUSWIDE_81 and COCO, we recommend you to follow [here](https://github.com/thuml/HashNet/tree/master/pytorch#datasets) to prepare NUSWIDE_81 and COCO images.
18
26
19
-
```
20
-
.
21
-
|-- database.txt
22
-
|-- database_nolabel.txt
23
-
|-- test
24
-
|-- test.txt
25
-
|-- train
26
-
`-- train.txt
27
-
```
27
+
## Pretrained Models
28
+
You can download the pretrained models in the [release page](https://github.com/thuml/HashGAN/releases) and modify config file to use the pretrained models.
29
+
30
+
## Training
28
31
29
-
If you need run on NUSWIDE_81 and COCO, we recommend you to follow https://github.com/thuml/HashNet/tree/master/pytorch#datasets to prepare NUSWIDE_81 and COCO images.
32
+
The training process can be divided into two step:
33
+
1. Training a image generator.
34
+
2. Fintune Alexnet using original labeled images and generated images.
30
35
31
-
## Models
32
-
### TODO
36
+
In `config` folder, we provide some examples to prepare yaml configuration.
33
37
34
-
-[ ] code refactor
35
-
-[ ] wgan scale == 0
36
-
-[ ] G, D architecture
37
-
-[ ] evaluate mode
38
-
-[ ] resume training
39
-
-[ ] tensorboard
40
-
-[ ] experiment
41
-
-[ ] training longger
42
-
-[ ] code release
43
-
-[ ] pretrained G model
44
-
-[ ] Pretrain model of Alexnet
45
-
-[ ] rerun all process on a fresh machine
38
+
```
39
+
config
40
+
├── cifar_evaluation.yaml
41
+
├── cifar_step_1.yaml
42
+
├── cifar_step_2.yaml
43
+
└── nuswide_step_1.yaml
44
+
```
45
+
46
+
You can run the model using command like the following:
46
47
47
-
Configuration for th models is specified in a list of constants at the top of
48
-
the file, you can use the following command to run it:
0 commit comments