#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.
Watch puts torch-fidelity on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.torch-fidelity is on your watch list. Its new releases and problems show there.
- Stars
- 1.2k
- License
- custom license
- Last commit
- Oct 2026
- Last release
- Feb 2026
- Language
- Python
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| Rank | Project | Score |
|---|---|---|
| #222 | quantumPython library for hybrid quantum-classical ML on TensorFlow and Cirq | 54 out of 100 |
| #223 | nncfQuantization and compression toolkit for OpenVINO, PyTorch and ONNX models | 54 out of 100 |
| #225 | paddlexLow-code toolkit for training and deploying PaddlePaddle OCR and vision models | 53 out of 100 |
| #226 | gluontsPython library for probabilistic time series forecasting with PyTorch models | 53 out of 100 |
| #227 | kaolinPyTorch library for 3D deep learning: meshes, splats, rendering, physics | 53 out of 100 |