/MIDI2ScoreTransformer

Code for the ISMIR 2024 paper "End-to-end Piano Performance-MIDI to Score Conversion with Transformers"

Primary LanguagePython

MIDI2ScoreTransformer

Code for the ISMIR 2024 paper "End-to-end Piano Performance-MIDI to Score Conversion with Transformers"

Installation

The code is written in Python 3.11 and relies on the following packages

Due to delays and difficulties merging changes with upstream versions, we currently require installing custom versions of the following packages (will be done automatically with requirements.txt):

In addition, you must manually clone and install this package:

Datasets

Please use this version of the ASAP-Dataset as it contains some fixes.

Afterwards, your data folder should look like this:

data
├── ACPAS-dataset
│   ├── metadata_R.csv
│   └── metadata_S.csv
└── asap-dataset

Setup (Inference)

  1. Download the MIDI2ScoreTF.ckpt from GitHub ('Releases' section) and place it where you like.

Setup (Training)

  1. Run dataset.py to preprocess the datasets and populate the cache.
  2. Run chunker.py to create the beat-aligned chunks.
  3. More instructions to follow