#224224th of 433 in ML frameworks and libraries

torch-fidelity

PyTorch library for computing generative model metrics like FID, KID and ISC

Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Stars
1.2k
License
custom license
Last commit
Oct 2026
Last release
Feb 2026
Language
Python
Stars, last 29 weeks+32
7 May 2026: 1,174 stars14 May 2026: 1,178 stars21 May 2026: 1,180 stars28 May 2026: 1,181 stars4 Jun 2026: 1,183 stars11 Jun 2026: 1,186 stars18 Jun 2026: 1,187 stars25 Jun 2026: 1,188 stars2 Jul 2026: 1,188 stars9 Jul 2026: 1,190 stars16 Jul 2026: 1,190 stars23 Jul 2026: 1,190 stars30 Jul 2026: 1,193 stars6 Aug 2026: 1,193 stars13 Aug 2026: 1,193 stars20 Aug 2026: 1,193 stars27 Aug 2026: 1,194 stars3 Sept 2026: 1,197 stars10 Sept 2026: 1,199 stars17 Sept 2026: 1,201 stars24 Sept 2026: 1,203 stars1 Oct 2026: 1,203 stars8 Oct 2026: 1,203 stars15 Oct 2026: 1,204 stars22 Oct 2026: 1,204 stars29 Oct 2026: 1,204 stars5 Nov 2026: 1,204 stars12 Nov 2026: 1,205 stars19 Nov 2026: 1,205 stars26 Nov 2026: 1,206 stars

1,174 on 7 May 20261,206 on 26 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

torch-fidelity computes Inception Score, FID, KID, Precision/Recall, Perceptual Path Length and Monge Inception Distance for generative models. It provides a `fidelity` CLI and a Python API (`calculate_metrics`) that accept image directories, built-in datasets such as cifar10-train, or generator models including ONNX. Features and statistics are shared and cached across metrics, so it can run at the end of each training epoch.

Who it is for: Researchers evaluating GANs and diffusion models who need paper-grade metrics

Strengths

  • Values match reference implementations to floating-point precision, per the README
  • Feature sharing and caching across metrics cut recomputation in training loops
  • Both a `fidelity` CLI and a Python API; inputs can be folders, datasets or generators
  • Custom feature extractors can be registered for non-image modalities

Weaknesses

  • Built-in metrics rely on Inception features; other modalities need a custom extractor
  • Evaluation only; no training tooling beyond one SNGAN CIFAR-10 example
  • License is reported as NOASSERTION, so check the repo before commercial use
  • Evaluating 50000 images is slow without a GPU

What it needs

  • GPU optional
  • Needs PyTorch
  • Models: PyTorch generator modules, ONNX generators, Inception feature extractor, custom feature extractors

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Also in ML frameworks and libraries

See all 433
Also in ML frameworks and libraries
RankProjectScore
#222quantumPython library for hybrid quantum-classical ML on TensorFlow and Cirq2.2k starsApache-2.054 out of 100
#223nncfQuantization and compression toolkit for OpenVINO, PyTorch and ONNX models1.2k starsApache-2.054 out of 100
#225paddlexLow-code toolkit for training and deploying PaddlePaddle OCR and vision models Live demo ↗ (opens in a new tab)6.3k starsApache-2.053 out of 100
#226gluontsPython library for probabilistic time series forecasting with PyTorch models5.3k starsApache-2.053 out of 100
#227kaolinPyTorch library for 3D deep learning: meshes, splats, rendering, physics5.2k starsApache-2.053 out of 100