Skip to content

geekysethi/triplet-GAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Triplet GAN

This is the code for Training Triplet Networks with GAN (arXiv).

The code is based on Improved Techniques with GAN (arXiv) (code)

Official Code Repo - Github

Installation

Use the package manager pip to install all required libraries.

pip install requirements.txt 

or

conda create --name <env> --file requirements.txt 

Pretraining

For pretraining the Triplet GAN we have used Improved Techniques with GAN for without the triplet loss function.

For Pretraining for MNIST data use pretrain.py --config_file configs/pretrain_gan.yml

Training Triplet GAN

For training the triplet GAN after pretraining use main.py --config_file configs/triplet_gan.yaml

Results

Pretraining

image info

Triplet Traininig

image info

image info

Accuracy and mAP

m = 16m = 32
N = 100N = 200N = 100N = 200
Accuracy0.98130.98190.98260.9833
mAP0.93450.95010.93300.9473

image info

Tsne Plots

image info

Generator Output

image info

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.