From be64365f03adf40055b279f0a09788aa6cb0031b Mon Sep 17 00:00:00 2001 From: y10ab1 <94939112+y10ab1@users.noreply.github.com> Date: Mon, 27 Nov 2023 21:33:26 +0800 Subject: [PATCH] Update model.py Fix tiny typo. --- workspace/uncond/remi-xl/model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workspace/uncond/remi-xl/model.py b/workspace/uncond/remi-xl/model.py index 5ecee2f..b757aa2 100755 --- a/workspace/uncond/remi-xl/model.py +++ b/workspace/uncond/remi-xl/model.py @@ -30,7 +30,7 @@ INSTR_NAME_MAP = {'piano': 0, 'melody': 1} -def wrtie_midi(words, path_midi, word2event): +def write_midi(words, path_midi, word2event): notes_all = [] events = [word2event[words[i]] for i in range(len(words))] @@ -406,4 +406,4 @@ def nucleus(self, probs, p): candi_probs = [probs[i] for i in candi_index] candi_probs /= sum(candi_probs) word = np.random.choice(candi_index, size=1, p=candi_probs)[0] - return word \ No newline at end of file + return word