Skip to main content

Project Description

Frechet Inception Distance (FID score)

Install

pip install fid-score

Requirements

pytorch >= 1.2.0

torchvision >= 0.3.0

Usage:

from fid_score.fid_score import FiDScore

fid = FidScore(paths, device, batch_size)

score = fid.calculate_fid_score()

Arguments

fid = FidScore(paths, device, batch_size)

paths = ['path of source image dir', 'path of target image dir']

device = torch.device('cuda:0') or default: torch.device('cpu')

batch_size = batch size

References

1. FID was introduced by Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler and Sepp Hochreiter in 
"GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium"

2. The original implementation is by the Institute of Bioinformatics, JKU Linz, licensed under the Apache License 2.0. 
See https://github.com/bioinf-jku/TTUR.

Metadata

Release files for fid-score 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fid-score 0.1.3
File Size Uploaded Provenance Actions
fid_score-0.1.3.tar.gz 5.7 kB Without provenance Details for fid_score-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fid-score 0.1.3
File Interpreter ABI Platform Actions
fid_score-0.1.3-py3-none-any.whl Python 3 none any Details for fid_score-0.1.3-py3-none-any.whl

Total release size: 12.2 kB

Release files / fid_score-0.1.3.tar.gz

Download URL fid_score-0.1.3.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
434acdd005aa0b62cb31b1bb7dc28c7e14624b0233c7360eb22fa86fa4225119
BLAKE2b-256 checksum
How to use checksums
9042dd6519ff6ba54fe1a72b793cb642c7b46c6e05530dea0e72bb2866eee6a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.2.0.post20200511 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.6

Release files / fid_score-0.1.3-py3-none-any.whl

Download URL fid_score-0.1.3-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2e49337726d7922dec8e3e4d0663b0fb94f62fd97f6a248e4682cbc1965f26d
BLAKE2b-256 checksum
How to use checksums
0e260cfa28529b55b5c96b5e73ca5ac6280f195b2f5e49108e15f4503b85811b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.2.0.post20200511 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.6

Security for fid-score 0.1.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page