A lightweight library of Frechet Audio Distance calculation.
pip install frechet_audio_distance
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")
We hereby provide the FAD scores comparison w.r.t. to the original implementation in google-research/frechet-audio-distance
Test 1: Distorted sine waves (as provided here) [notes]
baseline vs test1 | baseline vs test2 | |
---|---|---|
google-research |
12.4375 | 4.7680 |
frechet_audio_distance |
12.7398 | 4.9815 |
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