معرفی شرکت ها


frechet-audio-distance-0.1.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

A lightweight library of Frechet Audio Distance calculation.
ویژگی مقدار
سیستم عامل -
نام فایل frechet-audio-distance-0.1.0
نام frechet-audio-distance
نسخه کتابخانه 0.1.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده Hao Hao Tan <helloharry66@gmail.com>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/frechet-audio-distance/
مجوز MIT License Copyright (c) 2022 Hao Hao Tan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
## Frechet Audio Distance in PyTorch A lightweight library of Frechet Audio Distance calculation. Currently, we support embedding from: - `VGGish` by [S. Hershey et al.](https://arxiv.org/abs/1812.08466) - `PANN` by [Kong et al.](https://arxiv.org/abs/1912.10211). ### Installation `pip install frechet_audio_distance` ### Demo ```python from frechet_audio_distance import FrechetAudioDistance # to use `vggish` frechet = FrechetAudioDistance( model_name="vggish" use_pca=False, use_activation=False, verbose=False ) # to use `PANN` frechet = FrechetAudioDistance( model_name="pann" use_pca=False, use_activation=False, verbose=False ) fad_score = frechet.score("/path/to/background/set", "/path/to/eval/set") ``` ### Result validation **Test 1: Distorted sine waves on vggish** (as provided [here](https://github.com/google-research/google-research/blob/master/frechet_audio_distance/gen_test_files.py#L86)) [[notes](https://jexrj22lgy.larksuite.com/docx/Vat2dr8Aqonim6xmE6nuoBVZsUe)] FAD scores comparison w.r.t. to original implementation in `google-research/frechet-audio-distance` | | baseline vs test1 | baseline vs test2 | |:----------------------------:|:---------------------:|:------------------------:| | `google-research` | 12.4375 | 4.7680 | | `frechet_audio_distance` | 12.7398 | 4.9815 | **Test 2: Distorted sine waves on PANN** | | baseline vs test1 | baseline vs test2 | |:----------------------------:|:---------------------:|:------------------------:| | `frechet_audio_distance` | 0.000465 | 0.00008594 | ### 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 PANN paper: https://arxiv.org/abs/1912.10211


نیازمندی

مقدار نام
- numpy
- torch
- scipy
- tqdm
- soundfile
- resampy


زبان مورد نیاز

مقدار نام
>=3.7 Python


نحوه نصب


نصب پکیج whl frechet-audio-distance-0.1.0:

    pip install frechet-audio-distance-0.1.0.whl


نصب پکیج tar.gz frechet-audio-distance-0.1.0:

    pip install frechet-audio-distance-0.1.0.tar.gz