All models

musicnn

Pre-trained musically motivated CNNs that tag music audio with 50 tags.

Audio and speech · 68 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (29 KB)

Open in a new tab

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

Parameters
787.2K
Operations
68
Framework
PyTorch
Recurrent
No
Published
ISMIR 2019 Late-Breaking/Demo
Cited by
67 (as of 17 October 2026)
Authors
Jordi Pons, Xavier Serra
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m7529
Graph hash
883a370ff34834f5441a7e2f2ac36450f8c8a63c31d5c0c2ef9fc7065f704813
Skeleton hash
ba4a4408233aab7c5fdd1b06bff0ce2af6a52081d963b379811ff6123fa0de8a
Architecture hash
95554d699c6716c43d801e4a985fe38948e6c80bb234449139366be6695cb637
Diagram SHA-256
3407d2c56a9310d921ea14409a6e6bed5b231aac4e31b039dd0184451a489621
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

musicnn, pronounced "musician", is a set of pre-trained musically motivated convolutional neural networks for music audio tagging. The models are meant to be used as out-of-the-box music audio taggers, as music feature extractors, or as pre-trained models for transfer learning. They are trained on two datasets: the MagnaTagATune dataset of 19k training songs and the Million Song Dataset of 200k training songs.

The paper is a two-page ISMIR late-breaking demo, so it describes the architecture mostly through what the extractor hands back: for the musicnn models one can pull timbral, temporal, cnn1, cnn2, cnn3, mean_pool, max_pool and penultimate features. The output stage is a temporal pooling layer; the authors note that swapping it for an attention-based output layer lifts MagnaTagATune results to 90.77 ROC-AUC and 38.61 PR-AUC. Five pre-trained models ship with the library: MTT_musicnn, MSD_musicnn, MSD_musicnn_big, MTT_vgg and MSD_vgg, where the vgg ones are baselines for comparison.

The authors report state-of-the-art performance on MagnaTagATune for these models. MTT_musicnn reaches 90.69 ROC-AUC and 38.44 PR-AUC there, and MSD_musicnn reaches 88.01 ROC-AUC and 28.90 PR-AUC on the Million Song Dataset. Used as a frozen feature extractor ahead of 128 PCA components and an SVM on GTZAN, MSD_musicnn features give 77.24% accuracy against 77.58% for VGGish audioset features. The MSD pre-trained models outperform the MTT ones in that experiment.

The traced member is the PyTorch Musicnn from the sota-music-tagging-models repository, which lists it under End-to-end Learning for Music Audio Tagging at Scale, Pons et al., 2018. That repository's own advice is that if your dataset is relatively small, you should take advantage of domain knowledge using Musicnn.

Key idea. A library of pre-trained musically motivated convolutional networks for music audio tagging, usable out of the box as taggers, as feature extractors or as transfer-learning starting points.

  • musicnn
  • musician
  • music audio tagging
  • music tagging
  • MagnaTagATune
  • Million Song Dataset
  • Pons
  • sota-music-tagging-models
  • musically motivated CNN

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{pons2019musicnnpretrainedconvolutionalneural,
      title={musicnn: Pre-trained convolutional neural networks for music audio tagging}, 
      author={Jordi Pons and Xavier Serra},
      year={2019},
      eprint={1909.06654},
      archivePrefix={arXiv},
      primaryClass={cs.SD},
      url={https://arxiv.org/abs/1909.06654}, 
}