Music2MIDI: a deep learning model that generates MIDI piano cover songs from the original song audio.
Install FFmpeg.
Install FluidSynth.
conda env create -f environment.yaml
conda activate music2midi
Download trained model checkpoint in Releases.
python webui.py --ckpt [ckpt_path]
See demo.ipynb.
Download the dataset in Releases then unzip it.
Download the audio files from YouTube.
python data/download_youtube.py [data_dir]
python train.py [data_dir]
Evaluate the model based on melody chroma accuracy.
python evaluate.py [data_dir] --ckpt [ckpt_path]
-
If you encounter the error
module 'soundfile' has no attribute 'SoundFileRuntimeError'
, uninstallsoundfile
then install it again:pip uninstall pysoundfile pip uninstall soundfile pip install soundfile
-
If you encounter problems with FluidSynth like
/usr/lib/libinstpatch-1.0.so.2: undefined symbol: g_once_init_leave_pointer
, consider downgradinglibinstpatch
in your system.