Torch VGGish & YAMNet embedding models
torch_vggish_yamnet provides a ready-to-use PyTorch porting of AudioSet (Google) audio embedding models. The audio tagging models are trained from Models for AudioSet: A Large Scale Dataset of Audio Events: https://github.com/tensorflow/models/tree/master/research/audioset
This is a re-structured forked repository/project from torch_audioset (see References)
Installation
PyTorch>=1.0 is required (dependecies are auto-installed).
pip install torch-vggish-yamnet
Usage
from torch_vggish_yamnet import yamnet
from torch_vggish_yamnet import vggish
from torch_vggish_yamnet.input_proc import *
# Input signal (x_in) tensor conversion & ad-hoc patching
converter = WaveformToInput()
in_tensor = converter(x_in.float(), in_sr)
in_tensor.shape
# Models init
embedding_yamnet = yamnet.yamnet(pretrained=True)
embedding_vggish = vggish.get_vggish(with_classifier=False, pretrained=True)
# Embedding (forward)
emb_yamnet, _ = embedding_yamnet(in_tensor) # discard logits
emb_vggish = embedding_vggish(in_tensor)
emb_yamnet.shape, emb_vggish.shape
References
[1] AudioSet Official site: http://g.co/audioset
[2]
@inproceedings{45857,
title = {Audio Set: An ontology and human-labeled dataset for audio events},
author = {Jort F. Gemmeke and Daniel P. W. Ellis and Dylan Freedman and Aren Jansen and Wade Lawrence and R. Channing Moore and Manoj Plakal and Marvin Ritter},
year = {2017},
booktitle = {Proc. IEEE ICASSP 2017},
address = {New Orleans, LA}}
[3]
@incollection{45611,
title = {CNN Architectures for Large-Scale Audio Classification},
author = {Shawn Hershey and Sourish Chaudhuri and Daniel P. W. Ellis and Jort F. Gemmeke and Aren Jansen and Channing Moore and Manoj Plakal and Devin Platt and Rif A. Saurous and Bryan Seybold and Malcolm Slaney and Ron Weiss and Kevin Wilson},
year = {2017},
URL = {https://arxiv.org/abs/1609.09430},
booktitle = {International Conference on Acoustics, Speech and Signal Processing (ICASSP)}}
[4] torch_audioset GitHub repository: https://github.com/w-hc/torch_audioset/tree/master
Metadata
Release files for torch-vggish-yamnet 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| torch_vggish_yamnet-0.2.1.tar.gz | 9.9 kB | Without provenance | Details for torch_vggish_yamnet-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| torch_vggish_yamnet-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for torch_vggish_yamnet-0.2.1-py3-none-any.whl |
Total release size: 20.8 kB
Release files / torch_vggish_yamnet-0.2.1.tar.gz
| Download URL | torch_vggish_yamnet-0.2.1.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9794a5c3374512e66bd143f98d925c4546152c066ed6462431c7c9b40f42afb9
|
|
BLAKE2b-256 checksum How to use checksums |
bfa5ee86aeb801fed1e76c3787badaddd25a3d8cdc5b0c9a132e9ea7cda4f972
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.9
|
Release files / torch_vggish_yamnet-0.2.1-py3-none-any.whl
| Download URL | torch_vggish_yamnet-0.2.1-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04ce86c077dfb1e6ccfaec849895088cf13af84a355e05ce6d1f495451af3b5c
|
|
BLAKE2b-256 checksum How to use checksums |
7c8ca3e0c1c3fbc7ca87839329bf1f3affe72dea542e47fc6413ee00e30a353e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.9
|
Security for torch-vggish-yamnet 0.2.1
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.