Skip to main content

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

torch_fidelity-0.4.0.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

torch_fidelity-0.4.0-py3-none-any.whl (85.6 kB view details)

Uploaded Python 3

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

Hashes for torch_fidelity-0.4.0.tar.gz
Algorithm Hash digest
SHA256 73548b97f1a844cb94dee7736c8485cbf1e5ae43670679f62ffb7bbb8bb3d455
MD5 c3a056c499151eac79a6d68af4305560
BLAKE2b-256 323794e4d31a157bae81622557b7f94f93ca3749e6b592203633858dbca8c835

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_fidelity-0.4.0.tar.gz:

Publisher: publish.yml on toshas/torch-fidelity

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for torch_fidelity-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99f4c610ea16972628eceb26afb0008e528da2d44123db947b408750efbd35d4
MD5 93999b5e6782c49cba6522aca0688f0c
BLAKE2b-256 2735e0988c963538d155befe1c4e1b90ff2925eaa40acc27fb2bba737dcb7288

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_fidelity-0.4.0-py3-none-any.whl:

Publisher: publish.yml on toshas/torch-fidelity

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page