Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
# Conflicts:
#	inference/me_infer.py
  • Loading branch information
autumn-2-net committed Sep 20, 2023
2 parents 9482e76 + c3aaffd commit 16bd307
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion configs/continuous.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ binary_data_dir: null
binarization_args:
num_workers: 0
merge_rest: true # merge continuous rest notes
merge_slur: true # merge slurs with the same pitch
merge_slur: true # merge slurs with the similar pitch
round_midi: false # round midi value
slur_tolerance: 0.5 # maximum allowed value of pitch change of a slur to be merged

Expand Down
2 changes: 1 addition & 1 deletion configs/discrete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ binarization_args:
num_workers: 0
shuffle: true
merge_rest: true # merge continuous rest notes
merge_slur: true # merge slurs with the same pitch
merge_slur: true # merge slurs with the similar pitch
use_bound_loss: true
use_midi_loss: true

Expand Down
2 changes: 1 addition & 1 deletion utils/binarizer_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

def merge_slurs(note_seq: list, note_dur: list, note_slur: list, tolerance=None) -> Tuple[list, list]:
"""
merge slurs with the same pitch
merge slurs with the similar pitch
"""
note_midi = [librosa.note_to_midi(n, round_midi=False) if n != 'rest' else 'rest' for n in note_seq]
prev_min = prev_max = None
Expand Down

0 comments on commit 16bd307

Please sign in to comment.