PANNs
A 14-layer CNN pretrained on AudioSet for audio tagging and for transfer to other audio tasks.
Audio and speech · 78 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Audio and speech
- Parameters
- 81.8M
- Operations
- 78
- Framework
- PyTorch
- Recurrent
- No
- Published
- IEEE/ACM Transactions on Audio, Speech, and Language Processing 2020
- Cited by
- 69 (as of 26 October 2026)
- Authors
- Qiuqiang Kong, Yin Cao, Turab Iqbal and others
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m19041
- Graph hash
- 85439262955fab0c313ea20a76a785d619aba3c07ad44e5f60c2865d6d3136a1
- Skeleton hash
- a91bb9465d42c1cc752a5f405f4c8f7bb53bec8f183744c045c4ca3fe98f7ce0
- Architecture hash
- 5c55683954c3a1d6a664b247fbd4fabe57144d2b15fc1ccae9484dea3777afb2
- Diagram SHA-256
- 5864c1194d30b250de8d285f034fe33d6d1ae6fb2acefc73a93098180cab45d7
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
This model is the audio tagging network from panns_inference, a Python interface for audio tagging and sound event detection. It returns a clipwise output and an embedding for each audio clip.
PANNs are pretrained audio neural networks, trained on the large-scale AudioSet dataset and then transferred to other audio related tasks. The paper's starting point is that previous audio pattern recognition systems were built on specific datasets with limited durations. AudioSet, by contrast, contains over 5,000 hours of audio recordings with 527 sound classes.
This model is CNN14, which the paper chose as its basic model because it is a standard CNN with a simple architecture. Audio clips are converted to monophonic and resampled to 32 kHz. A log mel spectrogram is then calculated with 64 mel filter banks. That spectrogram extraction is built into the network itself. Each convolutional block consists of 2 convolutional layers. Global pooling after the last convolutional layer sums the averaged and maximized vectors. By default CNN14 has an embedding feature dimension of 2048.
The paper reports a mean average precision (mAP) of 0.431 for the CNN14 system on AudioSet tagging. Its best system, Wavegram-Logmel-CNN, reached 0.439 in the same paper. The authors also transferred PANNs to six audio pattern recognition tasks.
Key idea. The paper introduced PANNs, audio neural networks pretrained on AudioSet, and showed that they can be transferred to other audio pattern recognition tasks.
- panns
- pann
- pretrained audio neural networks
- cnn14
- audio tagging
- audioset
- sound event detection
- audio pattern recognition
- audio classification
- panns inference
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{kong2020pannslargescalepretrainedaudio,
title={PANNs: Large-Scale Pretrained Audio Neural Networks for Audio Pattern Recognition},
author={Qiuqiang Kong and Yin Cao and Turab Iqbal and Yuxuan Wang and Wenwu Wang and Mark D. Plumbley},
year={2020},
eprint={1912.10211},
archivePrefix={arXiv},
primaryClass={cs.SD},
url={https://arxiv.org/abs/1912.10211},
}