# The Song Describer Dataset: a Corpus of Audio Captions for Music-and-Language Evaluation [![License: MIT](https://img.shields.io/badge/License-MIT-red.svg)](https://opensource.org/licenses/MIT) [![arXiv](https://img.shields.io/badge/arXiv-2311.10057-.svg)](https://arxiv.org/abs/2311.10057) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10072001.svg)](https://doi.org/10.5281/zenodo.10072001) [![Huggingface](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Datasets-yellow)](https://huggingface.co/datasets/mulab-mir/song-describer) [Ilaria Manco](https://ilariamanco.com/)\*1,2, [Benno Weck](https://www.upf.edu/web/mtg/about/team-members/-/asset_publisher/l2XuyhfmWvQ5/content/weck-benno/maximized)\*3, [Seungheon Doh](https://seungheondoh.github.io/)4, [Minz Won](https://minzwon.github.io/)5, [Yixiao Zhang](http://www.eecs.qmul.ac.uk/~yz007/)1, [Dmitry Bogdanov](https://dbogdanov.com/)3, [Yusong Wu](https://lukewys.github.io/)6, [Ke Chen](https://www.knutchen.com/)7, [Philip Tovstogan](https://philtgun.me/)3, [Emmanouil Benetos](http://www.eecs.qmul.ac.uk/~emmanouilb/)1, [Elio Quinton](https://scholar.google.com/citations?user=IaciybgAAAAJ)2, [George Fazekas](http://www.eecs.qmul.ac.uk/~gyorgyf/about.html)1, [Juhan Nam](https://mac.kaist.ac.kr/~juhan/)4
1 QMUL, 2 UMG, 3 UPF, 4 KAIST, 5 ByteDance, 6 MILA, 7 UCSD
* equal contribution This repository contains starter code for the Song Describer Dataset (SDD). * [Paper](https://arxiv.org/abs/2311.10057) (accepted to the [ML for Audio workshop](https://mlforaudioworkshop.com/) @ NeurIPS 2023) * [Zenodo](https://doi.org/10.5281/zenodo.10072001) * [Datasheet](docs/datasheet.md) * [Hugging Face]() ([HF demo](https://huggingface.co/spaces/renumics/spotlight-song-describer-demo) built by [@Renumics](https://github.com/Renumics)) ## Dataset overview
https://github.com/mulab-mir/song-describer-dataset/assets/13520622/347133af-dac0-4d40-92b6-c2fae6742927 *"A retro-futurist drum machine groove drenched in bubbly synthetic sound effects and a hint of an acid bassline."* *"Elegant and sophisticated Latin jazz piece with a Cuban base and a whispered melodic female voice."* *"Calm sitar and Indian tabla with dramatic synthetic strings background."*
SDD contains ~1.1k captions for 706 permissively licensed music recordings. It is designed for use in evaluation of models that address music-and-language (M&L) tasks such as music captioning, text-to-music generation and music-language retrieval. More information about the data, collection method and validation is provided in the [data card](docs/datacard.md), together with more in-depth documentation in the [datasheet](docs/datasheet.md). | Subset | Tracks | Captions | Annotators | Cap len (avg) | Vocab size | Audio len | |:----:|:----:|:-----:|:-----:|:----:|:-----:|:-----:| | full | 706 | 1106 | 142 | 21.7 ± 12.4 | 2859 | ~ 2 min | | valid| 546 | 746 | 114 | 18.2 ± 7.6 | 1942 | ~ 2 min | ## Downloading the dataset The dataset is available to download from [Zenodo](https://doi.org/10.5281/zenodo.10072001): ```bash wget -P data https://zenodo.org/record/10072001/files/song_describer.csv https://zenodo.org/record/10072001/files/audio.zip unzip data/audio.zip -d data/audio ``` A download script is also available [here](scripts/download.sh). ## Code setup To use this code, we recommend creating a new python3 virtual environment: ```bash python -m venv venv source venv/bin/activate ``` Then, clone the repository and install the dependencies: ```bash git clone https://github.com/mulab-mir/song-describer-dataset.git cd song-describer-dataset pip install -r requirements.txt ``` ## Reproducing the analysis in the paper The overview statistics presented in the paper can be reproduced via the code in the [`dataset_stats.ipynb`](exploratory_analysis/dataset_stats.ipynb) notebook. Further exploratory analysis of the data can be found in the [`data_exploration.ipynb`](exploratory_analysis/data_exploration.ipynb) notebook ## Using the dataset ### PyTorch [Coming soon] ### Hugging Face [coming soon] ### Benchmarking M&L models with SDD [coming soon] ## Cite If you use the dataset or the code in this repo, please consider citing our work: ```bib @inproceedings{manco2023thesong, title={The Song Describer Dataset: a Corpus of Audio Captions for Music-and-Language Evaluation}, author={Manco, Ilaria and Weck, Benno and Doh, Seungheon and Won, Minz and Zhang, Yixiao and Bogdanov, Dmitry and Wu, Yusong and Chen, Ke and Tovstogan, Philip and Benetos, Emmanouil and Quinton, Elio and Fazekas, György and Nam, Juhan}, booktitle={Machine Learning for Audio Workshop at NeurIPS 2023}, year={2023}, } ``` ## License This repository is released under the MIT License. Please see the [LICENSE](LICENSE) file for more details. The dataset is released under the [CC BY-SA 4.0 license](https://creativecommons.org/licenses/by-sa/4.0/). ## Contact If you have any questions, please get in touch: [i.manco@qmul.ac.uk](i.manco@qmul.ac.uk).