-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dealing with empty midi file #110
Conversation
I thought that adding a test means a new python file XD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonderful, thank you for the contributions!
(I allowed myself to add the same check in _ids_to_tokens too :)
The tests using sustain pedals are expected to fail due to the last update of MIDIToolkit, this is fixed in #108 |
* dealing with empty midi file * add a new test midi tokenizer file instead of changing the original one * delete test_midi_tokenizer * Adding check empty input for _ids_to_tokens as well --------- Co-authored-by: Nathan Fradet <56734983+Natooz@users.noreply.github.com>
* parametrizing tests, improvements in preprocess_midi, fixes for miditoolkit 1.0.1 * fixing absolute path for data aug and io tests * fix test file tree, data aug report saved in out_path * fix in data augmentation saving paths * forced disabling original in out_dir when calling data aug from tok_dataset * using pytest tmp_path to write files, and TEST_LOG_DIR if required * lighter and more elegant MIDI assertions + covering check_midi_equals * better tokenization test sets, set_midi_max_tick method, renamed "nb" contractions to "num", handling empty tokens lists in methods * dealing with empty midi file (#110) * dealing with empty midi file * add a new test midi tokenizer file instead of changing the original one * delete test_midi_tokenizer * Adding check empty input for _ids_to_tokens as well --------- Co-authored-by: Nathan Fradet <56734983+Natooz@users.noreply.github.com> * adding tests for empty MIDI and associated fixes * fixes from tests with empty midi + retry hf hub tests when http errors * fix convert_sequence_to_tokseq when list in last dim is empty * better tok test sets * testing with multiple time resolutions, adjusting notes ends * fix _quantize_time_signatures (delete_equal_successive_time_sig_changes) --------- Co-authored-by: feiyuehchen <46064584+feiyuehchen@users.noreply.github.com>
see details: #104