I encountered the following error when using MidiProcessor for data processing (follow the steps in README).
Traceback (most recent call last): File "/home/guanyuan/miniconda3/envs/diffsinger/lib/python3.8/site-packages/midiprocessor/batch_encoding.py", line 98, in process_file encodings = encoder.encode_file( File "/home/guanyuan/miniconda3/envs/diffsinger/lib/python3.8/site-packages/midiprocessor/midi_encoding.py", line 255, in encode_file midi_obj = midi_utils.load_midi(file_path, midi_checker=midi_checker) File "/home/guanyuan/miniconda3/envs/diffsinger/lib/python3.8/site-packages/midiprocessor/midi_utils.py", line 12, in load_midi midi_obj = miditoolkit.midi.parser.MidiFile(filename=file_path, file=file) TypeError: __init__() got an unexpected keyword argument 'filename'
In addition, I found that MidiProcessor has been updated in the last month. Is this the reason for this error (some bugs of MidiProcessor need to be corrected)?
Hi. Sorry for the delay as I hadn't noticed this issue until just now. It seems like a problem of the miditoolkit. Reinstalling miditoolkit==0.1.16 should solve the problem.
I encountered the following error when using MidiProcessor for data processing (follow the steps in README).
Traceback (most recent call last): File "/home/guanyuan/miniconda3/envs/diffsinger/lib/python3.8/site-packages/midiprocessor/batch_encoding.py", line 98, in process_file encodings = encoder.encode_file( File "/home/guanyuan/miniconda3/envs/diffsinger/lib/python3.8/site-packages/midiprocessor/midi_encoding.py", line 255, in encode_file midi_obj = midi_utils.load_midi(file_path, midi_checker=midi_checker) File "/home/guanyuan/miniconda3/envs/diffsinger/lib/python3.8/site-packages/midiprocessor/midi_utils.py", line 12, in load_midi midi_obj = miditoolkit.midi.parser.MidiFile(filename=file_path, file=file) TypeError: __init__() got an unexpected keyword argument 'filename'
In addition, I found that MidiProcessor has been updated in the last month. Is this the reason for this error (some bugs of MidiProcessor need to be corrected)?
Thanks.