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

Ms3744 patch tokenize dataset #2

Merged
merged 2 commits into from
Aug 25, 2021

Commits on Aug 24, 2021

  1. Update midi_tokenizer_base.py

    ms3744 authored Aug 24, 2021
    Configuration menu
    Copy the full SHA
    4731d86 View commit details
    Browse the repository at this point in the history
  2. Cleaning up the file save for tokenizing dataset

    The current version of the function does not work well with midi paths with directories with them in python notebooks, this is because a directory has to created before a file can be stored. For example, if the midi path is "a/b/c.mid",  and the output directory is "d/e" then the code gives an error unless "d/e/a/b/" directory exists. This code will automatically take the name of the MIDI file and saves it in the directory as "d/e/c.json". There is a commented code in line 239 if we want to concatenate the entire path as "d/e/a/b/c.mid.json"
    ms3744 authored Aug 24, 2021
    Configuration menu
    Copy the full SHA
    de91d63 View commit details
    Browse the repository at this point in the history