High-fidelity performance metrics for generative models in PyTorch
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file torch_fidelity-0.4.0.tar.gz.
File metadata
- Download URL: torch_fidelity-0.4.0.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73548b97f1a844cb94dee7736c8485cbf1e5ae43670679f62ffb7bbb8bb3d455
|
|
| MD5 |
c3a056c499151eac79a6d68af4305560
|
|
| BLAKE2b-256 |
323794e4d31a157bae81622557b7f94f93ca3749e6b592203633858dbca8c835
|
Provenance
The following attestation bundles were made for torch_fidelity-0.4.0.tar.gz:
Publisher:
publish.yml on toshas/torch-fidelity
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
torch_fidelity-0.4.0.tar.gz -
Subject digest:
73548b97f1a844cb94dee7736c8485cbf1e5ae43670679f62ffb7bbb8bb3d455 - Sigstore transparency entry: 958868295
- Sigstore integration time:
-
Permalink:
toshas/torch-fidelity@2e5d88dcd8f374602fc68be872e3d0aee11913e3 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/toshas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2e5d88dcd8f374602fc68be872e3d0aee11913e3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file torch_fidelity-0.4.0-py3-none-any.whl.
File metadata
- Download URL: torch_fidelity-0.4.0-py3-none-any.whl
- Upload date:
- Size: 85.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99f4c610ea16972628eceb26afb0008e528da2d44123db947b408750efbd35d4
|
|
| MD5 |
93999b5e6782c49cba6522aca0688f0c
|
|
| BLAKE2b-256 |
2735e0988c963538d155befe1c4e1b90ff2925eaa40acc27fb2bba737dcb7288
|
Provenance
The following attestation bundles were made for torch_fidelity-0.4.0-py3-none-any.whl:
Publisher:
publish.yml on toshas/torch-fidelity
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
torch_fidelity-0.4.0-py3-none-any.whl -
Subject digest:
99f4c610ea16972628eceb26afb0008e528da2d44123db947b408750efbd35d4 - Sigstore transparency entry: 958868380
- Sigstore integration time:
-
Permalink:
toshas/torch-fidelity@2e5d88dcd8f374602fc68be872e3d0aee11913e3 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/toshas
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2e5d88dcd8f374602fc68be872e3d0aee11913e3 -
Trigger Event:
push
-
Statement type: