All Projects → thuml → HashGAN

thuml / HashGAN

Licence: MIT license
HashGAN: Deep Learning to Hash with Pair Conditional Wasserstein GAN

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to HashGAN

AdversarialBinaryCoding4ReID
Codes of the paper "Adversarial Binary Coding for Efficient Person Re-identification"
Stars: ✭ 12 (-80.95%)
Mutual labels:  hashing, generative-adversarial-network
MultiGraphGAN
MultiGraphGAN for predicting multiple target graphs from a source graph using geometric deep learning.
Stars: ✭ 16 (-74.6%)
Mutual labels:  generative-adversarial-network
crc32c
Fast CRC-32-Castagnoli implementation in Rust
Stars: ✭ 26 (-58.73%)
Mutual labels:  hashing
CycleGAN-gluon-mxnet
this repo attemps to reproduce Unpaired Image-to-Image Translation using Cycle-Consistent Adversarial Networks(CycleGAN) use gluon reimplementation
Stars: ✭ 31 (-50.79%)
Mutual labels:  generative-adversarial-network
CryptoKnight
CryptoKnight is a general purpose cryptography desktop app
Stars: ✭ 18 (-71.43%)
Mutual labels:  hashing
market risk gan tensorflow
Using Bidirectional Generative Adversarial Networks to estimate Value-at-Risk for Market Risk Management using TensorFlow.
Stars: ✭ 63 (+0%)
Mutual labels:  generative-adversarial-network
Argon2 Jvm
Argon2 Binding for the JVM
Stars: ✭ 245 (+288.89%)
Mutual labels:  hashing
Generative Continual Learning
No description or website provided.
Stars: ✭ 51 (-19.05%)
Mutual labels:  generative-adversarial-network
publications-arruda-ijcnn-2019
Cross-Domain Car Detection Using Unsupervised Image-to-Image Translation: From Day to Night
Stars: ✭ 59 (-6.35%)
Mutual labels:  generative-adversarial-network
mtss-gan
MTSS-GAN: Multivariate Time Series Simulation with Generative Adversarial Networks (by @firmai)
Stars: ✭ 77 (+22.22%)
Mutual labels:  generative-adversarial-network
precision-recall-distributions
Assessing Generative Models via Precision and Recall (official repository)
Stars: ✭ 80 (+26.98%)
Mutual labels:  generative-adversarial-network
SpareNet
Style-based Point Generator with Adversarial Rendering for Point Cloud Completion (CVPR 2021)
Stars: ✭ 118 (+87.3%)
Mutual labels:  generative-adversarial-network
pytorch-gans
PyTorch implementation of GANs (Generative Adversarial Networks). DCGAN, Pix2Pix, CycleGAN, SRGAN
Stars: ✭ 21 (-66.67%)
Mutual labels:  generative-adversarial-network
hashvis
Rust Program for Deterministic Generation of Random Art.
Stars: ✭ 43 (-31.75%)
Mutual labels:  hashing
Generative MLZSL
[TPAMI Under Submission] Generative Multi-Label Zero-Shot Learning
Stars: ✭ 37 (-41.27%)
Mutual labels:  generative-adversarial-network
Data-Structure-Algorithm-Programs
This Repo consists of Data structures and Algorithms
Stars: ✭ 464 (+636.51%)
Mutual labels:  hashing
30-Days-GANs-Paper-Reading
30 Days GANs Paper Reading
Stars: ✭ 41 (-34.92%)
Mutual labels:  generative-adversarial-network
deep-blueberry
If you've always wanted to learn about deep-learning but don't know where to start, then you might have stumbled upon the right place!
Stars: ✭ 17 (-73.02%)
Mutual labels:  generative-adversarial-network
FAST-RIR
This is the official implementation of our neural-network-based fast diffuse room impulse response generator (FAST-RIR) for generating room impulse responses (RIRs) for a given acoustic environment.
Stars: ✭ 90 (+42.86%)
Mutual labels:  generative-adversarial-network
Anime2Sketch
A sketch extractor for anime/illustration.
Stars: ✭ 1,623 (+2476.19%)
Mutual labels:  generative-adversarial-network

HashGAN: Deep Learning to Hash with Pair Conditional Wasserstein GAN

Code for CVPR 2018 Paper "HashGAN: Deep Learning to Hash with Pair Conditional Wasserstein GAN".

Prerequisites

  • Python3, NumPy, TensorFlow-gpu, SciPy, Matplotlib, OpenCV, easydict, yacs, tqdm
  • A recent NVIDIA GPU

We provide a environment.yaml for you and you can simplely use conda env create -f environment.yml to create the environment.

Or you can create the environment from scratch:

conda create --no-default-packages -n HashGAN python=3.6 && source activate HashGAN
conda install -y numpy scipy matplotlib  tensorflow-gpu opencv
pip install easydict yacs tqdm pillow

Data Preparation

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:

  1. Training a image generator.
  2. Fintune Alexnet using original labeled images and generated images.

In config folder, we provide some examples to prepare yaml configuration.

config
├── cifar_evaluation.yaml
├── cifar_step_1.yaml
├── cifar_step_2.yaml
└── nuswide_step_1.yaml

You can run the model using command like the following:

  • python main.py --cfg config/cifar_step_1.yaml --gpus 0
  • python main.py --cfg config/cifar_step_2.yaml --gpus 0

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

or describe your problem in Issues.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].