btyu / MidiProcessor

A MIDI processing tool that can transfer MIDI to tokens and vice versa. Still evolving...
13 stars 5 forks source link

return sorted(insts, key=lambda x: sort_6tracks_customized_order[x]) KeyError: 24 #4

Open ShengXia1573 opened 1 year ago

ShengXia1573 commented 1 year ago

im a new in this area. I was reproducing Museformer. When i used it to process LMD_full following Readme file of museformer at first step encoding midi files into tokens, i met this error. some midi could be encoded successfully, some could not . what can I do to fix this error, is there a problem with the file itself?

ShengXia1573 commented 1 year ago

Altogether 29940 files. Processed 29940 files. 1384 succeeded. 28556 failed.

btyu commented 1 year ago

We used preprocessed midi files instead of the original lmd_full data in our experiments. To use the original lmd_full or any other dataset, please see the [General Use] part of the Museformer README.