-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better tests + minor improvements (#108)
* 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>
- Loading branch information
1 parent
62b9c2e
commit 89c4678
Showing
59 changed files
with
1,462 additions
and
1,363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.