Commit b8d9b6aa authored by Richard Vogl's avatar Richard Vogl
Browse files

fix prepare dataset

parent dccd0755
......@@ -25,7 +25,7 @@ def get_feats_and_targs(file_list, audio_path, midi_path):
print("number of frames: %d, featlen: %d" % (num_frames, feat_len))
times, _ = midi_to_txt(midi_file)
targets = compute_target_array_from_times(posprocess_annotations(np.asarray(times), offset=21, num_classes=number_notes),
targets, _ = compute_target_array_from_times(posprocess_annotations(np.asarray(times), offset=21, num_classes=number_notes),
fps, num_frames, number_notes)
feat_list.append(features)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment