qmetrics.net

Torch Fidelity

PyTorch generative model evaluation metrics

torch-fidelity implements Inception Score, FID, KID, PPL, and related metrics for generative models with shared features and caching in PyTorch.

Overview

torch-fidelity provides implementations of common metrics used to evaluate generative models, especially image generators, within PyTorch workflows. Metrics include Inception Score, Fréchet Inception Distance, Kernel Inception Distance, perceptual path length, and precision-related measures covered in bundled documentation.

The design stresses numerical agreement with reference implementations up to floating-point precision, so results can be reported in research papers without relying on scattered reference codebases. Feature extraction is shared across metrics to avoid redundant computation, and caching reduces repeated work when evaluating repeatedly during training.

Modular design allows registering custom feature extractors so evaluation can extend beyond 2D images to other modalities such as video, audio, or volumes when a suitable representation model exists. A command-line fidelity tool supports quick runs on datasets, image folders, or ONNX generators, while the Python API integrates into training loops with metric dictionaries suitable for loggers.

Documentation points to training examples that call the API each epoch. Installation follows standard Python packaging. Teams training GANs or other generative models who need fast, consistent metric batches inside PyTorch benefit from consolidating evaluation in one package.

Key features

  • FID, KID, and Inception Score
  • Shared feature extraction
  • Metric result caching
  • Python API for training loops
  • Command-line fidelity tool
  • Custom feature extractors
  • ONNX generator evaluation
  • Precision-oriented numerics

Use cases

  • GAN training monitoring
  • Paper metric reporting
  • Per-epoch model evaluation
  • CIFAR-scale benchmark runs
  • Custom modality metrics

Tags

Similar software

TensorFlow

End-to-end machine learning platform and tooling ecosystem

TensorFlow is a machine learning platform with Python and C++ APIs, optional GPU packages, and companion libraries for data, training, deployment, and visualization.

★ 201.8k⟳ todayApache-2.0

Transformers

Shared model definitions for multimodal ML workloads

Transformers is a Python library that defines pretrained text, vision, audio, and multimodal models once in PyTorch for shared inference and training across the ecosystem.

★ 169.4k⟳ todayApache-2.0

RAGFlow

Open-source RAG engine and agent context platform

RAGFlow ingests heterogeneous documents, builds retrievable knowledge, and supports agent workflows with citations. It can run on your own hardware with Docker or a from-source server stack.

★ 94.8k⟳ todayApache-2.0

Headroom

Local LLM context compression library and proxy

Headroom shrinks tool outputs, logs, JSON, and chat history before LLM calls to cut input tokens while preserving retrievable originals. It offers a Python library, proxy, MCP tools, and agent wrappers.

★ 81k⟳ yesterdayApache-2.0

Unsloth

Local desktop workspace to run and fine-tune AI models

Unsloth is a desktop application to chat with, fine-tune, and serve LLMs, diffusion, audio, and embedding models on your own hardware with optional agent integrations.

★ 80.4k⟳ todayApache-2.0

Models

TensorFlow reference models and modeling utilities collection

The TensorFlow Model Garden hosts implementations of models and modeling solutions for TensorFlow, installable via pip as tf-models-official.

★ 77.6k⟳ 11 days agoApache-2.0