NSynth Dataset

Visualization of the NSynth dataset in the Deep Lake UI
NSynth is a dataset made of one-shot instrumental notes. The dataset contains 305,979 musical notes that have a unique pitch, timbre, and envelope. The sounds in the dataset were collected from 1006 instruments from commercial sample libraries. The sounds were annotated based on their sonic qualities, source (acoustic, electronic, or synthetic), and instrument family (bass, brass, flute, guitar, keyboard, mallet, organ, reed, string, synth lead, and vocal).
Instead of downloading the NSynth dataset in Python, you can effortlessly load it in Python via our Deep Lake open-source with just one line of code.
import deeplake
ds = deeplake.load("hub://activeloop/nsynth-train")
import deeplake
ds = deeplake.load("hub://activeloop/nsynth-test")
import deeplake
ds = deeplake.load("hub://activeloop/nsynth-val")
NSynth Data Fields
- audios: tensor to represent audio in wav format.
- sample_rate: tensor representing the sample rate of audio.
- pitch: tensor representing the pitch of audio.
- instrument_source: tensor representing the source of audio instrument.
- instrument_family: tensor to represent the family of audio instrument.
- note: tensor text representing the audio.
- qualities: tensor to represent the quality of audio.
- velocity: tensor to represent the velocity of audio wave.
- instrument: tensor to represent the instrument with which the audio is created.
NSynth Data Splits
- The NSynth dataset training set is composed of 289205.
- The NSynth dataset testing set is composed of 4096.
- The NSynth dataset validation set is composed of 12678.
Train a model on NSynth dataset with PyTorch in Python
Let’s use Deep Lake built-in PyTorch one-line dataloader to connect the data to the compute:
dataloader = ds.pytorch(num_workers=0, batch_size=4, shuffle=False)
Train a model on NSynth dataset with TensorFlow in Python
dataloader = ds.tensorflow()
- Homepage: https://magenta.tensorflow.org/datasets/nsynth
- Repository: N/A
- Paper: Jesse Engel, Cinjon Resnick, Adam Roberts, Sander Dieleman, Douglas Eck, Karen Simonyan, and Mohammad Norouzi. “Neural Audio Synthesis of Musical Notes with WaveNet Autoencoders.” 2017.
- Point of Contact: N/A
NSynth Dataset Curators
Jesse Engel, Cinjon Resnick, Adam Roberts, Sander Dieleman, Douglas Eck, Karen Simonyan, and Mohammad Norouzi
NSynth Dataset Licensing Information
Deep Lake users may have access to a variety of publicly available datasets. We do not host or distribute these datasets, vouch for their quality or fairness, or claim that you have a license to use the datasets. It is your responsibility to determine whether you have permission to use the datasets under their license.
If you’re a dataset owner and do not want your dataset to be included in this library, please get in touch through a GitHub issue. Thank you for your contribution to the ML community!
NSynth Dataset Citation Information
@misc{nsynth2017,
Author = {Jesse Engel and Cinjon Resnick and Adam Roberts and
Sander Dieleman and Douglas Eck and Karen Simonyan and
Mohammad Norouzi},
Title = {Neural Audio Synthesis of Musical Notes with WaveNet Autoencoders},
Year = {2017},
Eprint = {arXiv:1704.01279},
}
What is the NSynth dataset for Python?
NSynth is an audio dataset with 305,979 musical notes. The dataset is often used to classify wave files (.wav) based on their instrument family. NSynth is also a popular benchmark and entry point into audio machine learning. The creators of the dataset view NSynth as a building block for future datasets.
How can I use NSynth dataset in PyTorch or TensorFlow?
You can stream the NSynth dataset while training a model in PyTorch or TensorFlow with one line of code using the open-source package Activeloop Deep Lake in Python. See detailed instructions on how to train a model on NSynth dataset with PyTorch in Python or train a model on NSynth dataset with TensorFlow in Python.