torch-fidelity is the reference implementation of generative image model evaluation metrics in
PyTorch, providing epsilon-exact computation of Inception Score (ISC), Fréchet Inception Distance
(FID), Kernel Inception Distance (KID), and Precision and Recall (PRC). It supports multiple
feature extractors including InceptionV3, CLIP, DINOv2, and VGG16.
Originally created to bring numerically faithful metric implementations to the PyTorch ecosystem —
matching TensorFlow reference code to machine precision — torch-fidelity is now widely adopted as
a foundational dependency (e.g., by torchmetrics) and a standard tool for benchmarking GANs,
diffusion models, flow-matching, and other generative approaches.
Key features:
- Epsilon-exact: values match reference implementations to floating-point precision
- Efficient: feature sharing and multi-level caching minimize redundant computation
- Extensible: register custom feature extractors to evaluate any modality — images, video, audio,
3D volumes, or anything else with a suitable learned representation
Find more details and the most up-to-date information on the project webpage:
https://www.github.com/toshas/torch-fidelity
Metadata
Release files for torch-fidelity 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| torch_fidelity-0.4.0.tar.gz | 1.3 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| torch_fidelity-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.4 MB
Release files / torch_fidelity-0.4.0.tar.gz
| Download URL | torch_fidelity-0.4.0.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73548b97f1a844cb94dee7736c8485cbf1e5ae43670679f62ffb7bbb8bb3d455
|
|
BLAKE2b-256 checksum How to use checksums |
323794e4d31a157bae81622557b7f94f93ca3749e6b592203633858dbca8c835
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 17, 2026.
Transparency logRelease files / torch_fidelity-0.4.0-py3-none-any.whl
| Download URL | torch_fidelity-0.4.0-py3-none-any.whl |
|---|---|
| Size | 85.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99f4c610ea16972628eceb26afb0008e528da2d44123db947b408750efbd35d4
|
|
BLAKE2b-256 checksum How to use checksums |
2735e0988c963538d155befe1c4e1b90ff2925eaa40acc27fb2bba737dcb7288
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 17, 2026.
Transparency log