This is a port of the official implementation of Fréchet Inception Distance to PyTorch. FID is a measure of similarity between two datasets of images. It was shown to correlate well with human judgement of visual quality and is most often used to evaluate the quality of samples of Generative Adversarial Networks. FID is calculated by computing the Fréchet distance between two Gaussians fitted to feature representations of the Inception network. The weights and the model are exactly the same as in the official Tensorflow implementation, and were tested to give very similar results (e.g. .08 absolute error and 0.0009 relative error on LSUN, using ProGAN generated images). However, due to differences in the image interpolation implementation and library backends, FID results still differ slightly from the original implementation. In difference to the official implementation, you can choose to use a different feature layer of the Inception network instead of the default pool3 layer.

Features

  • Requires python3
  • The weights and the model are exactly the same as in the official Tensorflow implementation
  • Use different layers for feature maps
  • Licensed under the Apache License 2.0
  • Requires numpy
  • Requires scipy

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow FID score for PyTorch

FID score for PyTorch Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of FID score for PyTorch!

Additional Project Details

Programming Language

Python

Related Categories

Python Machine Learning Software, Python Generative Adversarial Networks (GAN), Python Generative AI

Registered

2022-08-11