Skip to content

Code and resources related to the ISMIR 2019 paper: An Attention Mechanism for Musical Instrument Recognition. Specifically designed to focus on Instrument Recognition in Music.

License

Notifications You must be signed in to change notification settings

InfrastructureAI/MIC-Analysis

Repository files navigation

MIC-Analysis

This repository contains the code and resources associated with the ISMIR 2019 paper:

Siddharth Gururani, Mohit Sharma, Alexander Lerch. An Attention Mechanism for Musical Instrument Recognition. (To appear) In Proceedings of the International Society of Music Information Retrieval, ISMIR 2019.

Data

Before executing any code, please download the data from here. You should then place train.npz and test.npz in the data folder.

Alternatively, you may download the OpenMIC dataset and use the tool data/data_split.py to generate the dataset splits.

Prerequisites

You need to have Pytorch, TensorboardX, Tqdm, Deepcopy installed in your python environment. We will update the repo with a conda environment file for easy setup. By default the code assumes the presence of a GPU. We will add a device-agnostic version of the code in future commits.

Usage

The commands in the multirun_commands.txt file were used to train the various models with different random seeds. If you are only interested in the attention model, that can be found in Attention.py. The baseline models are implemented in model.py.

Acknowledgements

Our thanks to Qiuqiang Kong for their implementation of the attention model from their paper:

Qiuqiang Kong, Yong Xu, Wenwu Wang and Mark D. Plumbley. Audio Set classification with attention model: A probabilistic perspective. In: International Conference on Acoustics, Speech, and Signal Processing, ICASSP 2018, Calgary, Canada, 15-20 April 2018.

About

Code and resources related to the ISMIR 2019 paper: An Attention Mechanism for Musical Instrument Recognition. Specifically designed to focus on Instrument Recognition in Music.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages