Skip to content
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

Merged
merged 4 commits into from
Nov 26, 2023
Merged

dealing with empty midi file #110

merged 4 commits into from
Nov 26, 2023

Conversation

feiyuehchen
Copy link
Contributor

see details: #104

@Natooz
Copy link
Owner

Natooz commented Nov 26, 2023

Hello, thank you for the PR!
What is the reason for adding a new file in 0b56f39 ?
The changes you made in f312f21 were good :)

@feiyuehchen
Copy link
Contributor Author

I thought that adding a test means a new python file XD
Let me change it

Copy link
Owner

@Natooz Natooz left a 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 :)

@Natooz
Copy link
Owner

Natooz commented Nov 26, 2023

The tests using sustain pedals are expected to fail due to the last update of MIDIToolkit, this is fixed in #108

@Natooz Natooz merged commit 62b9c2e into Natooz:main Nov 26, 2023
2 of 14 checks passed
Natooz added a commit that referenced this pull request Nov 27, 2023
* 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>
Natooz added a commit that referenced this pull request Nov 28, 2023
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants