Skip to content

Commit a2e1381

Browse files
committed
Remove midi_dur length output of MIDI-A
1 parent 982a1cb commit a2e1381

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

inference/ds_cascade.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,11 @@ def preprocess_phoneme_level_input(self, inp):
5555
if not len(note_lst) == len(ph_seq_lst) == len(midi_dur_lst) == len(ph_dur):
5656
raise RuntimeError(f'The number of notes, phones and durations mismatch:'
5757
f'{len(note_lst)} {len(ph_seq.split())} {len(midi_dur_lst)} {len(ph_dur)}')
58-
print(f'Processed {len(ph_seq_lst)} tokens: {" ".join(ph_seq_lst)}')
5958
else:
60-
print(len(note_lst), len(ph_seq.split()), len(midi_dur_lst))
6159
if not len(note_lst) == len(ph_seq.split()) == len(midi_dur_lst):
6260
raise RuntimeError(f'The number of notes, phones and durations mismatch:'
6361
f'{len(note_lst)} {len(ph_seq.split())} {len(midi_dur_lst)}')
64-
print(f'Processed {len(ph_seq_lst)} tokens: {" ".join(ph_seq_lst)}')
62+
print(f'Processed {len(ph_seq_lst)} tokens: {" ".join(ph_seq_lst)}')
6563

6664
return ph_seq, note_lst, midi_dur_lst, is_slur, ph_dur, \
6765
f0_timestep, f0_seq, gender_timestep, gender, velocity_timestep, velocity

0 commit comments

Comments
 (0)