kozistr / gan-metrics

Lots of evaluation metrics for the generative adversarial networks in pytorch
Apache License 2.0
9 stars 2 forks source link
frechet-inception-distance gan gan-metrics inception-score metrics pytorch wasserstein-distance

gan-metrics

Lots of evaluation metrics of Generative Adversarial Networks in pytorch

Work In Progress...

Requirements

Usage

  1. Clone the repository and Move the directory.
$ git clone https://github.com/kozistr/gan-metrics
$ cd ./gan-metrics
  1. Install the requirements.txt
$ pip3 install -r requirements.txt
  1. Configure the config.yml
open the file and edit
  1. Run
$ python3 -m metrics

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

DataSets

You can edit the transform function with your flavor!

References

Author

Hyeongchan Kim / @kozistr