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
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.
You can download the whole cifar10 dataset including the images and data list from here, and unzip it to data/cifar10 folder.
If you need run on NUSWIDE_81 and COCO, we recommend you to follow here to prepare NUSWIDE_81 and COCO images.
Pretrained Models
The imagenet pretrained Alexnet model can be downloaded here.
You can download the pretrained Generator models in the release page and modify config file to use the pretrained models.
Training
The training process can be divided into two step:
Training a image generator.
Fintune Alexnet using original labeled images and generated images.
In config folder, we provide some examples to prepare yaml configuration.
You can use tensorboard to monitor the training process such as losses and Mean Average Precision.
Citation
If you use this code for your research, please consider citing:
@inproceedings{cao2018hashgan,
title={HashGAN: Deep Learning to Hash with Pair Conditional Wasserstein GAN},
author={Cao, Yue and Liu, Bin and Long, Mingsheng and Wang, Jianmin and KLiss, MOE},
booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
pages={1287--1296},
year={2018}
}
Contact
If you have any problem about our code, feel free to contact