Lots of evaluation metrics of Generative Adversarial Networks in pytorch
Work In Progress...
- Python 3.x
- torch 1.x
- torchvision 0.4.x
- numpy
- scipy
- cython
- pot
- pyyaml
Clonethe repository andMovethe directory.
$ git clone https://github.com/kozistr/gan-metrics
$ cd ./gan-metricsInstalltherequirements.txt
$ pip3 install -r requirements.txtConfiguretheconfig.yml
open the file and editRun
$ python3 -m metrics| Metric | Paper | Code |
|---|---|---|
| Inception Score (IS) | arXiv | code |
| Frechet Inception Distance (FID) | code | |
| Kernel Inception Distance (KID) | ||
| SSIM & PSNR | ||
| Precision & Recall | ||
| Earth Mover's Distance (EMD, a.k.a wasserstein distance) | wiki | code |
| Perceptual Path Length (PPL) | ||
| Learned Perceptual Image Patch Similarity (LPIPS) | arXiv | |
| Reliable Fidelity & Diversity (PRDC) | arXiv | |
| Amazon's Mechanical Turk (AMT) | Amazon |
You can edit the transform function with your flavor!
- MNIST / FashionMNIST
- CIFAR10 / CIFAR100
- LSUN
- CelebA
- ImageNet
- Custom
- GAN-Metrics : https://github.com/xuqiantong/GAN-Metrics
- GAN_Metrics-Tensorflow : https://github.com/taki0112/GAN_Metrics-Tensorflow
Hyeongchan Kim / @kozistr