Skip to main content

A lightweight library of Frechet Audio Distance calculation.

Project description

Frechet Audio Distance in PyTorch

A lightweight library of Frechet Audio Distance calculation.

Installation

pip install frechet_audio_distance

Demo

from frechet_audio_distance import FrechetAudioDistance

frechet = FrechetAudioDistance(
    use_pca=False, 
    use_activation=False,
    verbose=False
)
fad_score = frechet.score("/path/to/background/set", "/path/to/eval/set")

References

VGGish in PyTorch: https://github.com/harritaylor/torchvggish

Frechet distance implementation: https://github.com/mseitzer/pytorch-fid

Frechet Audio Distance paper: https://arxiv.org/abs/1812.08466

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

frechet_audio_distance-0.0.4.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

frechet_audio_distance-0.0.4-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file frechet_audio_distance-0.0.4.tar.gz.

File metadata

File hashes

Hashes for frechet_audio_distance-0.0.4.tar.gz
Algorithm Hash digest
SHA256 cb6d2e0dedd4c745ed3bafa61d602e2404fb935f4c7371541af9046f4a0bc000
MD5 84538ac80e7a10081547835ca7ae5312
BLAKE2b-256 fd2a11763576b169883d8937c4e9a26c65587467c9c8676779cbde2a7590c6eb

See more details on using hashes here.

File details

Details for the file frechet_audio_distance-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for frechet_audio_distance-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0b4afb981681e83039f37e9ec2faa83acd457d4884ffa305ec702adfac975981
MD5 53fde9104c06e3ecea09b6ff0b5953b6
BLAKE2b-256 31ca25e6f4c22ba75ab109c555f83cef42aad6935e6539563d580ec7dbf49a00

See more details on using hashes here.

Supported by

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