Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Richard Vogl
piano_transcription
Commits
89ed9966
Commit
89ed9966
authored
Jun 17, 2018
by
Richard Vogl
Browse files
fix prepare sets
parent
b457f06f
Changes
1
Show whitespace changes
Inline
Side-by-side
piano_transcription/prepare_dataset.py
View file @
89ed9966
...
...
@@ -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
(
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment