Skip to content

Commit

Permalink
Fix setting tgt when using a dataset with a performance less than the…
Browse files Browse the repository at this point in the history
… max sequence length
  • Loading branch information
gwinndr authored May 26, 2022
1 parent 4ea0833 commit 7161590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataset/e_piano.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def process_midi(raw_mid, max_seq, random_seq):
if(raw_len < full_seq):
x[:raw_len] = raw_mid
tgt[:raw_len-1] = raw_mid[1:]
tgt[raw_len] = TOKEN_END
tgt[raw_len-1] = TOKEN_END
else:
# Randomly selecting a range
if(random_seq):
Expand Down

0 comments on commit 7161590

Please sign in to comment.